@tensor_1/react 2.26.1 → 2.26.2

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.
@@ -44,6 +44,7 @@ function useDialog(open, onClose) {
44
44
  lockBodyScroll();
45
45
  let locked = true;
46
46
  const handleClose = () => {
47
+ if (el.open) return;
47
48
  if (locked) {
48
49
  locked = false;
49
50
  unlockBodyScroll();
package/dist/index.cjs CHANGED
@@ -294,6 +294,7 @@ function useDialog(open, onClose) {
294
294
  lockBodyScroll();
295
295
  let locked = true;
296
296
  const handleClose = () => {
297
+ if (el.open) return;
297
298
  if (locked) {
298
299
  locked = false;
299
300
  unlockBodyScroll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",