@vaadin/vaadin-overlay
Advanced tools
Comparing version 3.2.15 to 3.2.16
@@ -14,3 +14,3 @@ { | ||
"name": "@vaadin/vaadin-overlay", | ||
"version": "3.2.15", | ||
"version": "3.2.16", | ||
"main": "vaadin-overlay.js", | ||
@@ -17,0 +17,0 @@ "author": "Vaadin Ltd", |
@@ -410,2 +410,14 @@ /** | ||
this.$.backdrop.addEventListener('click', () => {}); | ||
// Make sure the focus stays within the overlay (even on caret browsing) | ||
this.addEventListener('focusout', e => { | ||
const related = e.relatedTarget; | ||
if (this.focusTrap && (!related || !this._deepContains(related))) { | ||
setTimeout(() => { | ||
this.tabIndex = -1; | ||
this.focus(); | ||
this.tabIndex = undefined; | ||
}); | ||
} | ||
}); | ||
} | ||
@@ -412,0 +424,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58207
1209