@civicactions/cmsds-open-data-components 4.0.13-alpha.8 → 4.0.13-alpha.9

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/main.js CHANGED
@@ -3270,8 +3270,11 @@ const $6f4318b1e14124e5$var$FilterDataset = ()=>{
3270
3270
  isOpen: modalOpen,
3271
3271
  onExit: ()=>{
3272
3272
  setModalOpen(false);
3273
- // Re-add body class if fullscreen dialog is still open (workaround for design system not tracking nested dialogs)
3274
- if (document.querySelector(".dkan-full-screen-dataset-dialog")) document.body.classList.add("ds--dialog-open");
3273
+ // Defer to run after Dialog's useLayoutEffect cleanup removes the class
3274
+ setTimeout(()=>{
3275
+ // Check for open fullscreen dialog wrapper, not just the dialog element
3276
+ if (document.querySelector(".dkan-fullscreen-data-table-wrapper .ds-c-dialog-wrap.open")) document.body.classList.add("ds--dialog-open");
3277
+ }, 0);
3275
3278
  },
3276
3279
  className: "dkan-filter-dataset-dialog",
3277
3280
  ariaCloseLabel: "Close dialog",