1
0
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:
Dan Brown
2024-06-30 10:31:39 +01:00
parent f10ec3271a
commit 517c578a5f
4 changed files with 59 additions and 42 deletions

View File

@@ -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;