Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
FocusListener and BlurListener at add-on did not work.
Hello.
I try to add add-on OSGiMaskedTextField ( https://vaadin.com/directory#!addon/osgimaskedtextfield )
It works most well, but there is some errors.
It didn't work as well:
component.addFocusListener(event -> System.out.println("FOCUS"));
component.addBlurListener(event -> System.out.println("BLUR"));
How can i fix this listeners?
If that's the same one as this: https://github.com/andersonfreitas/vaadin-masked-textfield/blob/master/src/main/java/org/vaadin/addons/maskedtextfield/client/MaskedTextFieldWidget.java
looks like the overridden onFocus / onBlur methods might be blocking those listeners from getting triggered. If you decide to add a super() call there, be careful not to break any of the existing functionality.
-Olli
Olli Tietäväinen: If that's the same one as this: https://github.com/andersonfreitas/vaadin-masked-textfield/blob/master/src/main/java/org/vaadin/addons/maskedtextfield/client/MaskedTextFieldWidget.java
looks like the overridden onFocus / onBlur methods might be blocking those listeners from getting triggered. If you decide to add a super() call there, be careful not to break any of the existing functionality.
-Olli
Hello, Olli!
Thanks for answer. It is very useful.
You're welcome, let us know if you get it working!
-Olli