-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface.FieldEvents.FocusListener not working on some browsers #10414
Comments
Hi, I couldn't reproduce the issue using 8.1.4 on FF 56, IE11 or Edge with the given simple app that only contains the text field. All browsers seems to show the notification when the text field is focused. |
[focus_issue.zip](https://github.com/vaadin/framework/files/1603412/focus_issue.zip)
Hi Adam,
I tried feature with simple app as you mentioned and it worked. But the
problem occurs in a more complex project structure.
For example: In my company, we took your Bakery starter App (Jave EE) and
adapted it to our requirements, but here FocusListener event doesn't work
on some browsers (Edge, Firefox).
For better understanding I attached .zip file. Here you'll find two maven
projects:
- focus_example_1 - simple app where everything works fine
- focus_example_2 - project where FocusListener doesn't work on Edge and
Firefox browser.
I also tried FocusListener on Bakery App project where issue also occurs.
Vaadin version: 8.2.0
Best regards and of course Happy 2018!
Leon Stanko
2017-12-29 15:26 GMT+01:00 Adam Wagner <[email protected]>:
… Hi, I couldn't reproduce the issue using 8.1.4 on FF 56, IE11 or Edge with
the given simple app that only contains the text field. All browsers seems
to show the notification when the text field is focused.
Do you have some additional setup that could interfere with the event
handling? Did you try the feature just with a very simple app?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10414 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgsDWxhBn5LiJvnc7POPhrQ_pVbdqmNcks5tFPZ4gaJpZM4Q2Yly>
.
|
I have the same problem with BlurListener in TextField inside complex project structure with Firefox Browser. Issue is: #10805 |
I tested Focus and Blur listeners on Windows 10 / Edge (41.16299.371.0), Vaadin 8.3.1 and they both triggered correctly. There is number of reports of this issue, which indicates that something has gone wrong somewhere, but so far we have been unable to reproduce the issue. |
I don't know why but in the attached project ( If you remove from pom the dependency to It work also with |
@mcollovati Excellent observation! webcomponents-lite.js is the polyfill library used with Board, since it is a webcomponent (we use webcomponents polyfill also in Flow). It quick glance I did not find generic issue reported in their issue tracker https://github.com/webcomponents/webcomponentsjs/issues If this turns out to be bug in polyfills library (i.e. it is somehow blocking the event), the issue should be filed there. Similar issue has not been reported with Flow either yet. |
Board precompiled probably contains a quite old version of the polyfill. Would make sense to upgrade to the latest to see if it resolves the issue |
Hello there! We are sorry that this issue hasn't progressed lately. We are prioritizing issues by severity and the number of customers we expect are experiencing this and haven't gotten around to fix this issue yet. There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):
Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too! |
I have checked with Vaadin 8.6.0.alpha1 ana Firefox 62.0 and the bug is still active as long as I have a Board add on within my project. |
We too have the problem with ignored focus and blur events. We do not have a problem with the newest Firefox but with Edge and the Internet Explorer. We tried the deprecated Vaadin 7 and Vaadin 8 TextField component. For both versions, we are not receiving any focus or blur event. The Value/Text Change Event ist working though. We tested the following browsers/versions:
|
@devdev-dev Do you use Vaadin Board add on in your project? |
Nope - We are not using the Vaadin Board Add On. |
Hello there! We are sorry that this issue hasn't progressed lately. We are prioritizing issues by severity and the number of customers we expect are experiencing this and haven't gotten around to fix this issue yet. There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):
Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too! |
Unfortunately, the problem is still relevant and does not allow the use of Edge Browsers. Works Chrome 77.0.3865.93 We are using Vaadin 8.7.0 |
I think this should have been fixed by vaadin/board#144 |
Vaadin versions: 8.1.7, 8.1.6, 8.1.5, 8.1.4
A call of FocusListener (interface.FieldEvnets.FocusListener) not working on some browsers like Microsoft Edge or Firefox but it works well with Google Chrome and Opera.
Example:
textField.addFocusListener(new FocusListener() { @Override public void focus(FocusEvent event) { Notification.show("It works!"); } });
The text was updated successfully, but these errors were encountered: