提交 a5374b1f 编写于 作者: G Gabriel Rigo da Cruz Jacobsen 提交者: Benjamin Pasero

fixed dropdown only working the first time (#49290)

上级 66d0e86e
......@@ -243,7 +243,7 @@ export class DropdownMenu extends BaseDropdown {
getActionItem: (action) => this.menuOptions && this.menuOptions.actionItemProvider ? this.menuOptions.actionItemProvider(action) : null,
getKeyBinding: (action: IAction) => this.menuOptions && this.menuOptions.getKeyBinding ? this.menuOptions.getKeyBinding(action) : null,
getMenuClassName: () => this.menuClassName,
onHide: () => removeClass(this.element, 'active'),
onHide: () => this.onHide(),
actionRunner: this.menuOptions ? this.menuOptions.actionRunner : null
});
}
......@@ -251,6 +251,11 @@ export class DropdownMenu extends BaseDropdown {
public hide(): void {
super.hide();
}
private onHide(): void {
this.hide();
removeClass(this.element, 'active');
}
}
export class DropdownMenuActionItem extends BaseActionItem {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册