bug4210 Added TODO for improvements of event handling for native inputs

This commit is contained in:
Benjamin Barth committed 2017-11-21 10:23:58 +01:00
1 parent fdc33cdb73
commit 751d71556f
1 file changed
+1
@@ -44,6 +44,7 @@ class NativeDateTimeInput extends Widget implements DateTimeInput {
@Override
public final void onBrowserEvent(Event event) {
// TODO: Cache latest value to avoid multiple ValueChangeEvents
final int type = event.getTypeInt();
if (type == Event.ONCHANGE || type == Event.ONBLUR || type == Event.ONKEYUP) {
ValueChangeEvent.fire(this, getValue());