You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to implement a system where the value of the datepicker is the current date/time on the blur event, if there is no modelValue. Something like the following:
The issue is that the update:modelValue event is only triggered with the user releases the focus of the datetime picker, and the if model is null because the picker is initially empty and the user starts writing something and releases focus, their text gets replaced with the current date.
Describe the solution you'd like
An easy way to fix this is to have access to the value of the text-input and check if that's empty instead of the model. Could be done through a text-change event.
Describe alternatives you've considered
Currently I have no alternative to overcome this problem.
Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm trying to implement a system where the value of the datepicker is the current date/time on the blur event, if there is no modelValue. Something like the following:
The issue is that the update:modelValue event is only triggered with the user releases the focus of the datetime picker, and the if model is null because the picker is initially empty and the user starts writing something and releases focus, their text gets replaced with the current date.
Describe the solution you'd like
An easy way to fix this is to have access to the value of the text-input and check if that's empty instead of the model. Could be done through a text-change event.
Describe alternatives you've considered
Currently I have no alternative to overcome this problem.
Additional context
None
The text was updated successfully, but these errors were encountered: