Skip to content

Commit

Permalink
Merge pull request #4642 from henrikx/patch-1
Browse files Browse the repository at this point in the history
Fix ribbon tooltips getting stuck on the screen by setting a small delay before saving attributes in attributeeditor
  • Loading branch information
zadam authored Feb 16, 2024
2 parents e6dec70 + 2f813df commit 157f894
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
this.attributeDetailWidget.hide();
});

this.$editor.on('blur', () => this.save());
this.$editor.on('blur', () => setTimeout(() => this.save(), 100)); // Timeout to fix https://github.com/zadam/trilium/issues/4160

this.$addNewAttributeButton = this.$widget.find('.add-new-attribute-button');
this.$addNewAttributeButton.on('click', e => this.addNewAttribute(e));
Expand Down

0 comments on commit 157f894

Please sign in to comment.