diff options
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/NativeSelect.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/NativeSelect.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/src/main/java/com/vaadin/ui/NativeSelect.java b/server/src/main/java/com/vaadin/ui/NativeSelect.java index 46e72b02c6..b68ea6c14d 100644 --- a/server/src/main/java/com/vaadin/ui/NativeSelect.java +++ b/server/src/main/java/com/vaadin/ui/NativeSelect.java @@ -95,10 +95,8 @@ public class NativeSelect<T> extends AbstractSingleSelect<T> @Override public Registration addFocusListener(FocusListener listener) { - addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener, + return addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener, FocusListener.focusMethod); - return () -> removeListener(FocusEvent.EVENT_ID, FocusEvent.class, - listener); } @Override @@ -109,10 +107,8 @@ public class NativeSelect<T> extends AbstractSingleSelect<T> @Override public Registration addBlurListener(BlurListener listener) { - addListener(BlurEvent.EVENT_ID, BlurEvent.class, listener, + return addListener(BlurEvent.EVENT_ID, BlurEvent.class, listener, BlurListener.blurMethod); - return () -> removeListener(BlurEvent.EVENT_ID, BlurEvent.class, - listener); } @Override |