DEV: prevents focus event bubbling (#14241)

This commit is contained in:
Joffrey JAFFEUX 2021-09-03 16:41:15 +02:00 committed by GitHub
parent 36a81435cf
commit 142120753f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ export default SelectKitHeaderComponent.extend(UtilsMixin, {
attributeBindings: ["name"],
focusIn(event) {
event.stopImmediatePropagation();
document.querySelectorAll(".select-kit-header").forEach((header) => {
if (header !== event.target) {
header.parentNode.open = false;