angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

Input autoformat won't work in some cases

Open lucasjmatias opened this issue 7 years ago • 0 comments

I tested on oficial plunkers

like this: https://embed.plnkr.co/rWtdhO

For example, I want my date to be formatted like 'YYYY-MM-DD' on blur. At first it works, but if I select a value and focus and unfocus about two or three times it stops formatting.

As you can see below, it may get very messy and cofusing for the user to correct the value, since the format stops working. I tried to use along a Mask component, but both components were asking for isolated scope, so it was impossible to use.

blur-issue

Is there a workaround?

lucasjmatias avatar Nov 28 '17 09:11 lucasjmatias