Reactivity of datetimepicker in vue #2069
Replies: 1 comment
-
Hi! Since the TW Elements is a vanilla JS package, the v-model reactivity will not work there. To get the current pickers value we have to listen for events changes.
For me the Listening for
|
Beta Was this translation helpful? Give feedback.
-
I am using the datetimepicker element in a vue application, there are a few observations / questions I have:
<input>
close.te.datetimepicker
- thedateChange.te.datetimepicker
does not appear to workevent.srcElement.firstChild.value
- this returns a string which then has to be converted to a timestamp in my caseMy question is am I missing something here, as it seems like a complex manner to get the selected date/time from the element?
Summarised code:
This affects other elements too - like the chips input element, where the only way to update an array with the value entered is to listen to
e.target.innerText
- this only provides a string including the label text, that needs to be split...Beta Was this translation helpful? Give feedback.
All reactions