This topic contains 3 replies, has 2 voices, and was last updated by Hristo 9 years, 1 month ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Editors › DateTimeInput › DateTimeInput's content gets auto-populated on blur if empty
Tagged: Angular datetimeinput, bootstrap datetimeinput, javascript datetimeinput, jquery datetimeinput, jqwidgets datetimeinput, jqxdatetimeinput, typescript datetimeinput
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 9 years, 1 month ago.
Hello.
When DateTimeInput’s content is cut (Ctrl+X), so the field is empty and then focus is lost – date becomes populated again.
Is there any way not restoring the date after this event?
Hello Endiny,
You could try to catch (Ctrl + X) and after this to set null value, but before this need to enabled allowNullDate properly.
Please, take a look at this workaround.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
Thanks for your answer, but I want to ask some more questions.
1) What about case where we want to cut only the part of the date, not the whole one?
2) What about tracking cut via context menu?
3) Why the behaviour differs from ‘Delete’ button for example?
Hello Endiny,
This is a workaround, as I mentioned before.
If you would like different behavior could customize the logic (the previous post was a hint).
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.