From 21c837667997836c1a16b866aef4351d57e16a79 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 8 Jan 2025 11:59:16 +0100 Subject: [PATCH] DEV: removes non needed special case (#30638) Now that we correctly await for the modal to close, we dont need to special case and disable focusTrigger, the flow will now be: - click an element of the menu - wait for modal to close - focus trigger - trigger action, which will eventually open a modal and attempt to focus the first item --- .../javascripts/discourse/components/chat-composer-dropdown.gjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.gjs index dc1e9cccfc7..80120cae162 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.gjs @@ -9,7 +9,7 @@ import DMenu from "float-kit/components/d-menu"; export default class ChatComposerDropdown extends Component { @action async onButtonClick(button, closeFn) { - await closeFn({ focusTrigger: false }); + await closeFn(); button.action(); }