mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-31 15:37:19 +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,
|
ButtonIcon,
|
||||||
deviceOptionsStore as deviceInfo,
|
deviceOptionsStore as deviceInfo,
|
||||||
resizeObserver,
|
resizeObserver,
|
||||||
HeaderAdaptive
|
HeaderAdaptive,
|
||||||
|
popupstore
|
||||||
} from '..'
|
} from '..'
|
||||||
|
|
||||||
export let type: 'type-aside' | 'type-popup' | 'type-component' | 'type-panel' = 'type-component'
|
export let type: 'type-aside' | 'type-popup' | 'type-component' | 'type-panel' = 'type-component'
|
||||||
@ -62,6 +63,11 @@
|
|||||||
if (closeButton && ev.key === 'Escape') {
|
if (closeButton && ev.key === 'Escape') {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
|
|
||||||
|
if (type === 'type-aside' && $popupstore.length > 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('close')
|
dispatch('close')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user