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
This commit is contained in:
Joffrey JAFFEUX 2025-01-08 11:59:16 +01:00 committed by GitHub
parent 6740a340ca
commit 21c8376679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ import DMenu from "float-kit/components/d-menu";
export default class ChatComposerDropdown extends Component { export default class ChatComposerDropdown extends Component {
@action @action
async onButtonClick(button, closeFn) { async onButtonClick(button, closeFn) {
await closeFn({ focusTrigger: false }); await closeFn();
button.action(); button.action();
} }