@doist/reactist 17.8.0 → 17.8.1
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/reactist.cjs.development.js +7 -1
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/new-components/modal/modal.js +7 -1
- package/es/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/package.json +1 -1
|
@@ -2173,7 +2173,13 @@ function Modal(_ref) {
|
|
|
2173
2173
|
"data-testid": "modal-overlay",
|
|
2174
2174
|
"data-overlay": true,
|
|
2175
2175
|
className: classNames(modules_8f59d13b.overlay, modules_8f59d13b[height], modules_8f59d13b[width], exceptionallySetOverlayClassName),
|
|
2176
|
-
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* We're using `onPointerDown` instead of `onClick` to prevent
|
|
2179
|
+
* the modal from closing when the click starts inside the modal
|
|
2180
|
+
* and ends on the backdrop.
|
|
2181
|
+
*/
|
|
2182
|
+
onPointerDown: hideOnInteractOutside ? handleBackdropClick : undefined,
|
|
2177
2183
|
ref: backdropRef
|
|
2178
2184
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
2179
2185
|
autoFocus: autoFocus,
|