Catch a parse error before reaching the console (with Custom Date Formats plugin) #2755
-
Hi,
if I put an erroneous string in the input field form in the browser like "fdfsdfd", I obtain this error in the browser console:
How to catch this error/event so I can clear the input erroneous text (or reset to old value or something else) AND not having an error in the browser console? P.S.: I try to catch some events in this way:
but from the output seems that I can only get change events:
You can try it in https://getdatepicker.com/6/repl.html using the "Localization" example; So, how to avoid the error in the console and "manage" the error to clear the input field(or reset to old value or something else) ? Thank you (Excuse me, now I have found the similar #2613 discussion.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi you might also be interested in #2793. I'm closing this since issues have been created that should address your concerns |
Beta Was this translation helpful? Give feedback.
-
I'm using TD v6.2.10 and everything is fine. As soon as I upgraded to v6.7.19 I get this JavaScript error: tempus-dominus.esm.js:126 Uncaught Error: TD: Custom Date Format: Unable to parse provided input: 2023-11-13 14:39:07, format: L LT |
Beta Was this translation helpful? Give feedback.
Hi you might also be interested in #2793. I'm closing this since issues have been created that should address your concerns