@chakra-ui/focus-lock
Advanced tools
Comparing version 1.1.1 to 1.1.2
# Change Log | ||
## 1.1.2 | ||
### Patch Changes | ||
- [`9c143bfe5`](https://github.com/chakra-ui/chakra-ui/commit/9c143bfe5bbf180929fabb0a1b4c18d40f7fd3fc) | ||
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Update focus utils | ||
to use `nextTick` option since its default value is now false in the focus | ||
utils | ||
> `@internal` use only | ||
- Updated dependencies | ||
[[`e748219f3`](https://github.com/chakra-ui/chakra-ui/commit/e748219f300f0c51b0eb304fce38b014d7bcbc86), | ||
[`91ef14839`](https://github.com/chakra-ui/chakra-ui/commit/91ef148397187010804eb8f30307d2ec94c32c5b)]: | ||
- @chakra-ui/utils@1.4.0 | ||
## 1.1.1 | ||
@@ -4,0 +20,0 @@ |
@@ -35,3 +35,5 @@ "use strict"; | ||
if (focusables.length === 0) { | ||
(0, _utils.focus)(contentRef.current); | ||
(0, _utils.focus)(contentRef.current, { | ||
nextTick: true | ||
}); | ||
} | ||
@@ -38,0 +40,0 @@ } |
@@ -23,3 +23,5 @@ import * as React from "react"; | ||
if (focusables.length === 0) { | ||
focus(contentRef.current); | ||
focus(contentRef.current, { | ||
nextTick: true | ||
}); | ||
} | ||
@@ -26,0 +28,0 @@ } |
{ | ||
"name": "@chakra-ui/focus-lock", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "React focus lock for all Chakra components", | ||
@@ -54,3 +54,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "1.3.0", | ||
"@chakra-ui/utils": "1.4.0", | ||
"react-focus-lock": "2.5.0" | ||
@@ -57,0 +57,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23928
148
+ Added@chakra-ui/utils@1.4.0(transitive)
- Removed@chakra-ui/utils@1.3.0(transitive)
Updated@chakra-ui/utils@1.4.0