fix immediately closed attribute detail after clicking e.g. "add label"

This commit is contained in:
zadam
2021-10-30 15:36:50 +02:00
parent 126f41ae5e
commit 311b98ffcb
2 changed files with 2 additions and 2 deletions

View File

@@ -334,7 +334,7 @@ export default class AttributeDetailWidget extends NoteContextAwareWidget {
this.$relatedNotesList = this.$relatedNotesContainer.find('.related-notes-list');
this.$relatedNotesMoreNotes = this.$relatedNotesContainer.find('.related-notes-more-notes');
$(window).on('mouseup', e => {
$(window).on('mousedown', e => {
if (!$(e.target).closest(this.$widget[0]).length
&& !$(e.target).closest(".algolia-autocomplete").length
&& !$(e.target).closest("#context-menu-container").length) {