mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 04:42:51 +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:
parent
6740a340ca
commit
21c8376679
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user