@abgov/jsonforms-components 1.41.4 → 1.41.5

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.
Files changed (2) hide show
  1. package/index.esm.js +11 -0
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -6378,6 +6378,17 @@ const DeleteDialog = /*#__PURE__*/React.memo(function DeleteDialog({
6378
6378
  title,
6379
6379
  message
6380
6380
  }) {
6381
+ useEffect(() => {
6382
+ if (open) {
6383
+ const deleteBtn = document.querySelector('[data-testId="object-array-confirm-button"]');
6384
+ if (deleteBtn) {
6385
+ setTimeout(() => {
6386
+ var _a, _b;
6387
+ (_b = (_a = deleteBtn.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.focus();
6388
+ }, 200);
6389
+ }
6390
+ }
6391
+ }, [open]);
6381
6392
  return jsxs(GoAModal, {
6382
6393
  open: open,
6383
6394
  testId: "object-array-modal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.41.4",
3
+ "version": "1.41.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",