We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74c23f commit 211fa30Copy full SHA for 211fa30
CHANGELOG.md
@@ -1,5 +1,7 @@
1
Next Release
2
-------------
3
+* Added download attribute check for IE11 in unload trigger.
4
+
5
1.5.0
6
------
7
* Added support for calculating height of body containing absolute positioned elements.
src/provider/application.js
@@ -260,6 +260,10 @@ class Application extends EventEmitter {
260
}
261
262
unload() {
263
+ // Need this line because IE11 & some safari trigger onbeforeunload despite presence of download attribute
264
+ if (document.activeElement && document.activeElement.hasAttribute('download')) {
265
+ return;
266
+ }
267
this.JSONRPC.notification('unload');
268
this.trigger('xfc.unload');
269
0 commit comments