tempusdominus / bootstrap-4

Tempus Dominus Bootstrap 4 Datetime Picker
https://getdatepicker.com/5-4/
MIT License
609 stars 238 forks source link

Changing date programmatically, without firing a change event #336

Open MassiPi opened 4 years ago

MassiPi commented 4 years ago

Hello, in my page, i have a datetimepicker that, once changed, sends data to the server through websockets. And this part works. But on page load, the information on the stored value is received from the server through websockets, and written to the time picker. BUT this write fires a change so the data is sent to the server that sends the updated data to all clients firing a change and so on :)

is there a way to update the picker without firing a change event? i tried with "date", "defaultDate" and "viewDate", where the last seems to not work at all.. thanks