@votodigital-onpeui/react 0.1.21 → 0.1.22
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/{chunk-RU4LXI3J.mjs → chunk-QXE2M5HP.mjs} +5 -9
- package/dist/chunk-QXE2M5HP.mjs.map +1 -0
- package/dist/{chunk-IPUE4N5Z.mjs → chunk-SB72YUWF.mjs} +3 -3
- package/dist/{chunk-IPUE4N5Z.mjs.map → chunk-SB72YUWF.mjs.map} +1 -1
- package/dist/{chunk-JFJPYMJQ.mjs → chunk-TECBIZYL.mjs} +3 -3
- package/dist/{chunk-JFJPYMJQ.mjs.map → chunk-TECBIZYL.mjs.map} +1 -1
- package/dist/components.js +3 -7
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +2 -2
- package/dist/hooks.js +3 -7
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +2 -2
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-RU4LXI3J.mjs.map +0 -1
package/dist/components.js
CHANGED
|
@@ -629,13 +629,9 @@ var Modal = ({
|
|
|
629
629
|
previousActiveElement.current = document.activeElement;
|
|
630
630
|
const labelledById = props["aria-labelledby"];
|
|
631
631
|
const focusInitial = (wrapper) => {
|
|
632
|
-
if (labelledById) {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
if (!labelEl.hasAttribute("tabindex")) labelEl.setAttribute("tabindex", "-1");
|
|
636
|
-
labelEl.focus({ preventScroll: true });
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
632
|
+
if (labelledById && document.getElementById(labelledById)) {
|
|
633
|
+
wrapper.focus({ preventScroll: true });
|
|
634
|
+
return;
|
|
639
635
|
}
|
|
640
636
|
const focusable = getFocusableElements(wrapper);
|
|
641
637
|
const first = focusable[0];
|