@meistrari/tela-build 1.59.0 → 1.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,6 +56,11 @@ onBeforeUnmount(() => {
|
|
|
56
56
|
unlockScroll()
|
|
57
57
|
})
|
|
58
58
|
|
|
59
|
+
function handleInteractOutside(event: CustomEvent) {
|
|
60
|
+
if (event.target instanceof Element && event.target.closest('[data-reka-popper-content-wrapper]'))
|
|
61
|
+
event.preventDefault()
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
function focusEditor(event: Event) {
|
|
60
65
|
event.preventDefault()
|
|
61
66
|
|
|
@@ -104,6 +109,7 @@ function focusEditor(event: Event) {
|
|
|
104
109
|
'overflow-hidden rounded-12px! border-black/12! flex flex-col [box-shadow:-24px_-24px_249px_0_rgba(0,0,0,0.08),-12px_-8px_48px_0_rgba(0,0,0,0.03)]!',
|
|
105
110
|
)"
|
|
106
111
|
@open-auto-focus="focusEditor"
|
|
112
|
+
@interact-outside="handleInteractOutside"
|
|
107
113
|
>
|
|
108
114
|
<slot />
|
|
109
115
|
</TelaPopoverContent>
|