fix duplicate subtree

This commit is contained in:
zadam
2021-10-02 23:26:18 +02:00
parent 8c2a5d19f2
commit e4a483aefe
7 changed files with 128 additions and 101 deletions

View File

@@ -310,7 +310,7 @@ export default class RibbonContainer extends NoteContextAwareWidget {
// won't trigger .refresh();
await super.handleEventInChildren('setNoteContext', data);
}
else {
else if (this.isEnabled()) {
const activeRibbonWidget = this.getActiveRibbonWidget();
// forward events only to active ribbon tab, inactive ones don't need to be updated