-
Notifications
You must be signed in to change notification settings - Fork 6.7k
M!/d!/yyyy does not Validate in the Dateparser Example #5225
Comments
I think this is actually a datepicker validation issue - I seem to remember seeing this before with the new format, thought I fixed it but apparently not. |
I'm seeing a similar issue that might be related. When I set the format to 'M!/d!/yyyy' the exclamation points appear in the datepicker input, e.g. "1!/15!/2016". It then does not accept any inputs with prepended zeroes. Using angular-ui-bootstrap 0.14.3 via webjars. uibDateParser service is injected into app; is there all that needs to be done for it to override the default? |
@devjeff the ! string fix is in 1.0.3 |
thanks @wesleycho; will test out newer version. |
Tested this out with angular 1.48, bootstrap 3.2.0, angular UI bootstrap 1.0.3. Datepicker no longer works; firebug saying "dateParser.fromTimezone is not a function". Any idea what might be breaking? |
Please post a reproduction in a separate issue - let's not clutter up this issue thread. |
Looks like 428beaf broke this. The `!' are being stripped out of the display format, but it reused the same variable that is used for validation. |
Looking into this some more, this feature requires a superset of the Angular date filter...this is a mess to fix, but I am in the process of crafting a fix. |
http://angular-ui.github.io/bootstrap/
Format defined: M!/d!/yyyy
Failed
Expecting:
The text was updated successfully, but these errors were encountered: