FIX: close d-menu before action in topic menu (#26956)

Prior to this fix we were making the action and then closing the d-menu which in this case would be a modal and close the modal opened by the action.
This commit is contained in:
Joffrey JAFFEUX 2024-05-09 21:08:15 +02:00 committed by GitHub
parent 4fad0b33eb
commit cb9817acb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,15 +20,15 @@ export default class TopicAdminMenu extends Component {
}
@action
onButtonAction(buttonAction) {
async onButtonAction(buttonAction) {
await this.dMenu.close();
this.args[buttonAction]?.();
this.dMenu.close();
}
@action
onExtraButtonAction(buttonAction) {
async onExtraButtonAction(buttonAction) {
await this.dMenu.close();
buttonAction?.();
this.dMenu.close();
}
get extraButtons() {