From aea9f92d39df4af5e7579e9d0ec443d3fb18a756 Mon Sep 17 00:00:00 2001 From: flxy Date: Wed, 11 Jan 2023 13:52:49 +0100 Subject: [PATCH 1/2] Adjust query selector to actually get the popover now --- src/components/react_button/react_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js index 2a0dac85..58fbb61b 100644 --- a/src/components/react_button/react_button.js +++ b/src/components/react_button/react_button.js @@ -41,7 +41,7 @@ const ReactButton = { }, focusInput () { this.$nextTick(() => { - const input = this.$el.querySelector('input') + const input = document.querySelector('.popover.ReactButton').querySelector('input') if (input) input.focus() }) }, From d81fdafacb86b120714b6541bd83cf588ab8b577 Mon Sep 17 00:00:00 2001 From: flxy Date: Wed, 11 Jan 2023 14:12:29 +0100 Subject: [PATCH 2/2] Pick a better query selector --- src/components/react_button/react_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js index 58fbb61b..47a48623 100644 --- a/src/components/react_button/react_button.js +++ b/src/components/react_button/react_button.js @@ -41,7 +41,7 @@ const ReactButton = { }, focusInput () { this.$nextTick(() => { - const input = document.querySelector('.popover.ReactButton').querySelector('input') + const input = document.querySelector('.reaction-picker-filter > input') if (input) input.focus() }) },