From d2eef423c39c7e01ecda92d7f774e03da00e8b74 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 2 Sep 2021 18:30:52 +0200 Subject: [PATCH] DEV: prevents broken tests due to focus bubbling (#14223) --- .../select-kit/addon/components/select-kit/select-kit-row.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/select-kit/addon/components/select-kit/select-kit-row.js b/app/assets/javascripts/select-kit/addon/components/select-kit/select-kit-row.js index 7eac79d9ae2..cb860e66f8e 100644 --- a/app/assets/javascripts/select-kit/addon/components/select-kit/select-kit-row.js +++ b/app/assets/javascripts/select-kit/addon/components/select-kit/select-kit-row.js @@ -158,6 +158,10 @@ export default Component.extend(UtilsMixin, { } }, + focusIn(event) { + event.stopImmediatePropagation(); + }, + keyDown(event) { if (this.selectKit.isExpanded) { if (event.key === "Backspace") {