@teamturing/react-kit 2.38.5 → 2.38.6
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/index.js +6 -0
- package/esm/core/OverlayPopper/index.js +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -34907,6 +34907,12 @@ const OverlayPopper = ({
|
|
|
34907
34907
|
const handleOverlayClose = () => {
|
|
34908
34908
|
onClose?.();
|
|
34909
34909
|
closeOverlay();
|
|
34910
|
+
const reference = refs.reference;
|
|
34911
|
+
if (reference.current) {
|
|
34912
|
+
setTimeout(() => {
|
|
34913
|
+
reference.current?.focus();
|
|
34914
|
+
}, 0);
|
|
34915
|
+
}
|
|
34910
34916
|
};
|
|
34911
34917
|
const delayedHandleOverlayClose = useDelayedFunction({
|
|
34912
34918
|
func: handleOverlayClose,
|
|
@@ -49,6 +49,12 @@ const OverlayPopper = ({
|
|
|
49
49
|
const handleOverlayClose = () => {
|
|
50
50
|
onClose?.();
|
|
51
51
|
closeOverlay();
|
|
52
|
+
const reference = refs.reference;
|
|
53
|
+
if (reference.current) {
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
reference.current?.focus();
|
|
56
|
+
}, 0);
|
|
57
|
+
}
|
|
52
58
|
};
|
|
53
59
|
const delayedHandleOverlayClose = useDelayedFunction({
|
|
54
60
|
func: handleOverlayClose,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.38.
|
|
3
|
+
"version": "2.38.6",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c4375f833385857e93c4be725e19dc3611160da1"
|
|
70
70
|
}
|