@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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
}
|