@ethlete/core 5.0.0-next.2 → 5.0.0-next.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`58525cd`](https://github.com/ethlete-io/ethdk/commit/58525cd7123c8e20739b0841b2f0abf5920296f1) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix error NG0600 created by using the focus visible provider
|
|
8
|
+
|
|
3
9
|
## 5.0.0-next.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -2407,20 +2407,20 @@ const [provideFocusVisibleTracker, injectFocusVisibleTracker, FOCUS_VISIBLE_TRAC
|
|
|
2407
2407
|
const onKeyDown = (e) => {
|
|
2408
2408
|
if (e.key === 'Tab' || e.key === 'Shift' || e.key === 'Meta' || e.key === 'Alt' || e.key === 'Control') {
|
|
2409
2409
|
hadKeyboardEvent = true;
|
|
2410
|
-
isFocusVisible.set(true);
|
|
2410
|
+
queueMicrotask(() => isFocusVisible.set(true));
|
|
2411
2411
|
}
|
|
2412
2412
|
};
|
|
2413
2413
|
const onPointerDown = () => {
|
|
2414
2414
|
hadKeyboardEvent = false;
|
|
2415
|
-
isFocusVisible.set(false);
|
|
2415
|
+
queueMicrotask(() => isFocusVisible.set(false));
|
|
2416
2416
|
};
|
|
2417
2417
|
const onFocus = () => {
|
|
2418
2418
|
if (hadKeyboardEvent) {
|
|
2419
|
-
isFocusVisible.set(true);
|
|
2419
|
+
queueMicrotask(() => isFocusVisible.set(true));
|
|
2420
2420
|
}
|
|
2421
2421
|
};
|
|
2422
2422
|
const onBlur = () => {
|
|
2423
|
-
isFocusVisible.set(false);
|
|
2423
|
+
queueMicrotask(() => isFocusVisible.set(false));
|
|
2424
2424
|
};
|
|
2425
2425
|
document.addEventListener('keydown', onKeyDown, true);
|
|
2426
2426
|
document.addEventListener('mousedown', onPointerDown, true);
|