flow icon indicating copy to clipboard operation
flow copied to clipboard

IE11 does't register clicks after downloading file. Vaadin 14.11.8

Open TheTOXIN opened this issue 2 months ago • 1 comments

Description of the bug

Hello, I made a simple Anchor component with a link to a file, and after clicking on the link and downloading the file, my application in the IE11 browser does't respond to clicks on some components, for example switching Tabs and selecting rows in the Grid, requests are not sent to the server, but at the same time clicks on Buttons are processed. After refreshing the page, everything works correctly.

Expected behavior

сlicks in IE11 work after downloading files

Minimal reproducible example

demo project: https://github.com/TheTOXIN/vaadin-starter-flow-spring-14

Versions

  • Vaadin / Flow version: 14.11.8
  • Java version: 11
  • OS version: Win 10
  • Browser version: IE11

TheTOXIN avatar Apr 17 '24 13:04 TheTOXIN

Note to whoever investigates this: the symptoms sound like the old issue with how downloads trigger a "premature" beforeunload event and then a listener for that event assumes that the page will actually be unloaded. In the case of downloads, the document is however not unloaded because the browser later receives a response with headers that makes it "realize" that the link was for a download rather than for navigation.

Legioth avatar Apr 18 '24 08:04 Legioth