@sveltia/ui 0.88.2 → 0.88.3
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.
|
@@ -117,6 +117,17 @@
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
+
// Kept out of the effect: in SSR output, esrap moves the comments of the dropped effect onto
|
|
121
|
+
// the next node, where this cast comment wraps a shorthand prop in parentheses, which is invalid
|
|
122
|
+
/**
|
|
123
|
+
* Give the list first refusal on the keys it drives. Anything it doesn’t take is left to the
|
|
124
|
+
* field, and the `keyup` listener below picks up wherever the caret ends up.
|
|
125
|
+
* @param {Event} event `keydown` event.
|
|
126
|
+
*/
|
|
127
|
+
const onKeyDown = (event) => {
|
|
128
|
+
list?.handleKeyDown(/** @type {KeyboardEvent} */ (event));
|
|
129
|
+
};
|
|
130
|
+
|
|
120
131
|
$effect(() => {
|
|
121
132
|
if (!element || !list) {
|
|
122
133
|
return undefined;
|
|
@@ -131,15 +142,6 @@
|
|
|
131
142
|
list?.update(findTrigger());
|
|
132
143
|
};
|
|
133
144
|
|
|
134
|
-
/**
|
|
135
|
-
* Give the list first refusal on the keys it drives. Anything it doesn’t take is left to the
|
|
136
|
-
* field, and the `keyup` listener below picks up wherever the caret ends up.
|
|
137
|
-
* @param {Event} event `keydown` event.
|
|
138
|
-
*/
|
|
139
|
-
const onKeyDown = (event) => {
|
|
140
|
-
list?.handleKeyDown(/** @type {KeyboardEvent} */ (event));
|
|
141
|
-
};
|
|
142
|
-
|
|
143
145
|
/**
|
|
144
146
|
* Close the list when the field loses the focus.
|
|
145
147
|
*/
|