@reykjavik/hanna-react 0.10.130 → 0.10.131

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
@@ -4,6 +4,12 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.10.131
8
+
9
+ _2024-07-23_
10
+
11
+ - fix: Typo selector used by `FocusTrap` to find a fallback target
12
+
7
13
  ## 0.10.130
8
14
 
9
15
  _2024-07-23_
package/FocusTrap.js CHANGED
@@ -37,7 +37,7 @@ const FocusTrap = (props) => {
37
37
  // Let's see if we can find a non-interactive focusable to fall back on
38
38
  const fallbackFocusElm = container.matches('[tabindex]')
39
39
  ? container
40
- : container.querySelector('[tabindex="-1"]') || container.closest('[tabindex');
40
+ : container.querySelector('[tabindex="-1"]') || container.closest('[tabindex]');
41
41
  if (fallbackFocusElm) {
42
42
  fallbackFocusElm.focus();
43
43
  }
package/esm/FocusTrap.js CHANGED
@@ -33,7 +33,7 @@ export const FocusTrap = (props) => {
33
33
  // Let's see if we can find a non-interactive focusable to fall back on
34
34
  const fallbackFocusElm = container.matches('[tabindex]')
35
35
  ? container
36
- : container.querySelector('[tabindex="-1"]') || container.closest('[tabindex');
36
+ : container.querySelector('[tabindex="-1"]') || container.closest('[tabindex]');
37
37
  if (fallbackFocusElm) {
38
38
  fallbackFocusElm.focus();
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.130",
3
+ "version": "0.10.131",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",