intelliwaketssveltekitv25 1.0.37 → 1.0.38
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/dist/Functions.js +5 -5
- package/package.json +1 -1
package/dist/Functions.js
CHANGED
|
@@ -183,7 +183,7 @@ export const DoIDsMatch = (a, b) => IsEqual(a, b) || IsEqual(a?.id, b?.id);
|
|
|
183
183
|
*/
|
|
184
184
|
export function autoFocus(el) {
|
|
185
185
|
tick().then(() => {
|
|
186
|
-
el
|
|
186
|
+
el?.focus();
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
export function autoGrow(node, _value) {
|
|
@@ -516,12 +516,12 @@ export function selectOnFocus(el) {
|
|
|
516
516
|
const handleBlur = async () => {
|
|
517
517
|
okToSelect = false;
|
|
518
518
|
};
|
|
519
|
-
el
|
|
520
|
-
el
|
|
519
|
+
el?.addEventListener('focus', handleFocus);
|
|
520
|
+
el?.addEventListener('blur', handleBlur);
|
|
521
521
|
return {
|
|
522
522
|
destroy() {
|
|
523
|
-
el
|
|
524
|
-
el
|
|
523
|
+
el?.removeEventListener('focus', handleFocus);
|
|
524
|
+
el?.removeEventListener('blur', handleBlur);
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
}
|