diff --git a/gwt-event-dom/src/main/java/org/gwtproject/event/dom/client/DomEvent.java b/gwt-event-dom/src/main/java/org/gwtproject/event/dom/client/DomEvent.java index 1bed384..79fa286 100644 --- a/gwt-event-dom/src/main/java/org/gwtproject/event/dom/client/DomEvent.java +++ b/gwt-event-dom/src/main/java/org/gwtproject/event/dom/client/DomEvent.java @@ -66,11 +66,13 @@ public static void fireNativeEvent( // loop. NativeEvent currentNative = type.flyweight.nativeEvent; Element currentRelativeElem = type.flyweight.relativeElem; + Object currentSource = type.flyweight.getSource(); type.flyweight.setNativeEvent(nativeEvent); type.flyweight.setRelativeElement(relativeElem); handlerSource.fireEvent(type.flyweight); type.flyweight.setNativeEvent(currentNative); type.flyweight.setRelativeElement(currentRelativeElem); + type.flyweight.setSource(currentSource); } } }