@meistrari/tela-build 1.77.1 → 1.77.2
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Latest updates and announcements.
|
|
4
4
|
|
|
5
|
+
## September 29, 2026
|
|
6
|
+
|
|
7
|
+
- `TelaTransparentInput` only emits `blur` on an outside click when its input has focus. Without `displayIcon`, the first click anywhere on the page used to emit `blur`, so title fields saved an unchanged value on every visit.
|
|
8
|
+
|
|
5
9
|
## September 24, 2026
|
|
6
10
|
|
|
7
11
|
- [Floating chat](/templates/chat#floating): Escape now closes the topmost overlay before the chat. `TelaDialog`, `TelaModal`, `TelaSheet` and `TelaSideSheet` overlays carry `data-tela-escape-layer`, and [Dropdown Menu](/components/dropdown-menu) content has a new `escapeLayer` prop that adds the marker (`TelaDropdownMenu` sets it).
|
|
@@ -83,12 +83,16 @@ function onBlur(event: Event) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
function handleClickOutside(event: Event) {
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
if (!isEditing.value || !containerRef.value || containerRef.value.contains(event.target as Node))
|
|
87
|
+
return
|
|
88
|
+
|
|
89
|
+
// Without displayIcon, isEditing starts true, so only a focused input ends an edit. Emitting blur otherwise makes parents save unchanged values
|
|
90
|
+
if (document.activeElement !== inputRef.value) {
|
|
91
|
+
isEditing.value = false
|
|
92
|
+
return
|
|
91
93
|
}
|
|
94
|
+
|
|
95
|
+
onBlur(new FocusEvent('blur', { bubbles: true }))
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
onMounted(() => {
|