@selfcommunity/react-ui 0.10.4-alpha.5 → 0.10.4-alpha.6
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.
|
@@ -274,12 +274,12 @@ function Composer(inProps) {
|
|
|
274
274
|
dialogRef.current.addEventListener('touchmove', handleTouchmove);
|
|
275
275
|
(0, body_scroll_lock_1.disableBodyScroll)(dialogRef.current, {
|
|
276
276
|
allowTouchMove: (el) => {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
el.
|
|
282
|
-
|
|
277
|
+
while (el && el !== document.body) {
|
|
278
|
+
if (el.getAttribute('class') !== null && el.getAttribute('class').includes('SCComposer-content')) {
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
el = el.parentElement;
|
|
282
|
+
}
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
return () => {
|
|
@@ -272,12 +272,12 @@ export default function Composer(inProps) {
|
|
|
272
272
|
dialogRef.current.addEventListener('touchmove', handleTouchmove);
|
|
273
273
|
disableBodyScroll(dialogRef.current, {
|
|
274
274
|
allowTouchMove: (el) => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
el.
|
|
280
|
-
|
|
275
|
+
while (el && el !== document.body) {
|
|
276
|
+
if (el.getAttribute('class') !== null && el.getAttribute('class').includes('SCComposer-content')) {
|
|
277
|
+
return true;
|
|
278
|
+
}
|
|
279
|
+
el = el.parentElement;
|
|
280
|
+
}
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
return () => {
|