fix: associate note with selected tag when saving with editor

This commit is contained in:
Mo Bitar
2020-10-08 11:44:08 -05:00
parent 53b61f941e
commit 507223c5b7
8 changed files with 41 additions and 37 deletions

View File

@@ -316,16 +316,6 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
this.unregisterComponent = this.application.componentManager!.registerHandler({
identifier: 'room-bar',
areas: [ComponentArea.Rooms, ComponentArea.Modal],
actionHandler: (component, action, data) => {
if (action === ComponentAction.SetSize) {
/** Do comparison to avoid repetitive calls by arbitrary component */
if (!topLevelCompare(component.getLastSize(), data)) {
this.application.changeItem<ComponentMutator>(component.uuid, (mutator) => {
mutator.setLastSize(data);
})
}
}
},
focusHandler: (component, focused) => {
if (component.isEditor() && focused) {
this.closeAllRooms();