mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 09:28:03 +08:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user