gwtbootstrap3 / gwtbootstrap3-extras

Extra (third party) wrappers for GwtBootstrap3
Apache License 2.0
43 stars 89 forks source link

Date (Time) Picker fires ValueChangeEvent when setting value into it with 'fireEvents' == false #312

Closed ahumellihuk closed 8 years ago

ahumellihuk commented 8 years ago

When you call setValue(value, false), you expect the date picker to just update its value, but not fire ValueChangeEvent. Unfortunately, this is exactly what happens. In JS library there is a check whether the new value was passed in to the update() function, and if it wasn't then it fires a 'changeDate' event. Is there a specific reason for using update() function, but setting the new value directly into the textbox before calling it?

crevete commented 8 years ago

Setting the new value directly into the textbox before calling the updatefunction may be due to the date format issue.