mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Lexical: Reorganised some logic into manager
This commit is contained in:
@@ -49,10 +49,10 @@ export class EditorDropdownButton extends EditorContainerUiElement {
|
||||
|
||||
handleDropdown(button, menu, () => {
|
||||
this.open = true;
|
||||
this.getContext().manager.triggerStateUpdate(this.button);
|
||||
this.getContext().manager.triggerStateUpdateForElement(this.button);
|
||||
}, () => {
|
||||
this.open = false;
|
||||
this.getContext().manager.triggerStateUpdate(this.button);
|
||||
this.getContext().manager.triggerStateUpdateForElement(this.button);
|
||||
});
|
||||
|
||||
return wrapper;
|
||||
|
Reference in New Issue
Block a user