ui-mask
ui-mask copied to clipboard
Display fill character only when mask hit the correct lenght when placeholder is space.
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.
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.
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 :)