mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
UBERF-7989: do not close thread on close popup with ecs (#6519)
This commit is contained in:
parent
a7b60c6a83
commit
ef5fd3a879
@ -21,7 +21,8 @@
|
||||
ButtonIcon,
|
||||
deviceOptionsStore as deviceInfo,
|
||||
resizeObserver,
|
||||
HeaderAdaptive
|
||||
HeaderAdaptive,
|
||||
popupstore
|
||||
} from '..'
|
||||
|
||||
export let type: 'type-aside' | 'type-popup' | 'type-component' | 'type-panel' = 'type-component'
|
||||
@ -62,6 +63,11 @@
|
||||
if (closeButton && ev.key === 'Escape') {
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
|
||||
if (type === 'type-aside' && $popupstore.length > 0) {
|
||||
return
|
||||
}
|
||||
|
||||
dispatch('close')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user