UBERF-7989: do not close thread on close popup with ecs (#6519)

This commit is contained in:
Kristina 2024-09-11 06:16:25 +04:00 committed by GitHub
parent a7b60c6a83
commit ef5fd3a879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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')
}
}