wcz-test 4.6.10 → 4.6.11
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 +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1192,9 +1192,8 @@ function AlertDialog({ open, payload, onClose }) {
|
|
|
1192
1192
|
const { t: t2 } = useTranslation2();
|
|
1193
1193
|
const buttonRef = useRef2(null);
|
|
1194
1194
|
useEffect2(() => {
|
|
1195
|
-
if (open && buttonRef.current)
|
|
1196
|
-
buttonRef.current
|
|
1197
|
-
}
|
|
1195
|
+
if (open && buttonRef.current)
|
|
1196
|
+
setTimeout(() => buttonRef.current?.focus());
|
|
1198
1197
|
}, [open]);
|
|
1199
1198
|
return /* @__PURE__ */ jsxs4(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(), children: [
|
|
1200
1199
|
/* @__PURE__ */ jsx5(DialogTitle, { children: payload.title ?? t2("Layout.Dialog.Alert") }),
|
|
@@ -1207,7 +1206,7 @@ function ConfirmDialog({ open, payload, onClose }) {
|
|
|
1207
1206
|
const buttonRef = useRef2(null);
|
|
1208
1207
|
useEffect2(() => {
|
|
1209
1208
|
if (open && buttonRef.current)
|
|
1210
|
-
buttonRef.current
|
|
1209
|
+
setTimeout(() => buttonRef.current?.focus());
|
|
1211
1210
|
}, [open]);
|
|
1212
1211
|
return /* @__PURE__ */ jsxs4(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(false), children: [
|
|
1213
1212
|
/* @__PURE__ */ jsx5(DialogTitle, { children: payload.title ?? t2("Layout.Dialog.Confirm") }),
|