mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
Fix closing item sidebar for printing label modal [SCI-9541] (#6486)
This commit is contained in:
parent
8b5f610c07
commit
aed5418366
1 changed files with 5 additions and 5 deletions
|
@ -295,11 +295,11 @@ export default {
|
|||
if (!this.isShowing) return
|
||||
|
||||
const sidebar = this.$refs.wrapper;
|
||||
// Check if the clicked element is not within the sidebar and it's not another item link or belogs to modal
|
||||
if (!sidebar.contains(event.target) &&
|
||||
!event.target.closest('a') &&
|
||||
!event.target.closest('.modal')) {
|
||||
this.toggleShowHideSidebar(null)
|
||||
// Check if the clicked element is not within the sidebar and it's not another item link or belogs to modals
|
||||
const selectors = ['a', '.modal', '.label-printing-progress-modal'];
|
||||
|
||||
if (!sidebar.contains(event.target) && !selectors.some(selector => event.target.closest(selector))) {
|
||||
this.toggleShowHideSidebar(null);
|
||||
}
|
||||
},
|
||||
toggleShowHideSidebar(repositoryRowUrl, myModuleId = null) {
|
||||
|
|
Loading…
Reference in a new issue