@r2digisolutions/components 0.17.4 → 0.17.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.
@@ -198,14 +198,10 @@
198
198
  function handleBackdropClick(event: MouseEvent) {
199
199
  if (!dialogEl) return;
200
200
  if (Date.now() < suppressBackdropUntil) return;
201
- const rect = dialogEl.getBoundingClientRect();
202
- const clickedInDialog =
203
- event.clientX >= rect.left &&
204
- event.clientX <= rect.right &&
205
- event.clientY >= rect.top &&
206
- event.clientY <= rect.bottom;
207
-
208
- if (clickedInDialog) return;
201
+ // Native <dialog>: only the dialog node itself is the backdrop target.
202
+ // Children (and Popover API listboxes that extend outside the panel) still
203
+ // bubble here — ignore those so Select/DatePicker don't close the modal.
204
+ if (event.target !== dialogEl) return;
209
205
  if (!closeOnBackdrop || confirmLoading) return;
210
206
  close('backdrop');
211
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.17.4",
3
+ "version": "0.17.5",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",