ui-mask icon indicating copy to clipboard operation
ui-mask copied to clipboard

Display fill character only when mask hit the correct lenght when placeholder is space.

Open Rouche opened this issue 8 years ago • 2 comments

Hi,

I think this would not be that hard to do, would it be possible to display fill characters only when the length of the value is greater than the fill position?

Like ngMask is doing.

You can see a fiddle here with both in action. Notice that only ui-mask works with ui-bootstrap datepicker.

http://plnkr.co/edit/zCGXtvY87BTa2eoQxcHq?p=preview

Thanks.

Rouche avatar Apr 08 '16 00:04 Rouche

I will look into this but my first thought is that this will be quite difficult to implement with the existing functionality as most of the core code in the library is about removing/adding the mask placeholder characters while the user is typing.

lukepfeiffer10 avatar Apr 08 '16 14:04 lukepfeiffer10

Oh this behavior is normal, because while typing, the date is not valid corresponding to the format of the uib-datepicker-popup.

I tested also with time format and date + time format.

Dont worry it works well :)

Rouche avatar Apr 08 '16 14:04 Rouche