From 70aa69ef2b0f2a08f404552662836f2cab97ed6b Mon Sep 17 00:00:00 2001 From: RaghavOS Date: Wed, 22 Jan 2025 12:17:36 +0530 Subject: [PATCH 1/3] Update track.jsx Handled the exception: [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example, because scrolling is in progress and cannot be interrupted. --- src/js/input-range/track.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/input-range/track.jsx b/src/js/input-range/track.jsx index 1df847f..75c44a0 100644 --- a/src/js/input-range/track.jsx +++ b/src/js/input-range/track.jsx @@ -161,7 +161,7 @@ export default class Track extends React.Component { */ @autobind handleTouchStart(event) { - event.preventDefault(); + if (event.cancelable) event.preventDefault(); this.handleMouseDown(event); } From 301a136ba696c89615097e7086bc9ebceb2e8efe Mon Sep 17 00:00:00 2001 From: RaghavOS Date: Wed, 22 Jan 2025 12:27:38 +0530 Subject: [PATCH 2/3] Update input-range.jsx --- src/js/input-range/input-range.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/input-range/input-range.jsx b/src/js/input-range/input-range.jsx index a097d4f..79d18f0 100644 --- a/src/js/input-range/input-range.jsx +++ b/src/js/input-range/input-range.jsx @@ -462,7 +462,7 @@ export default class InputRange extends React.Component { value: { max, min }, } = this.props; - event.preventDefault(); + if (event.cancelable) event.preventDefault(); const value = valueTransformer.getValueFromPosition(position, minValue, maxValue, this.getTrackClientRect()); const stepValue = valueTransformer.getStepValueFromValue(value, this.props.step); From a03b98628ff8b8cb0f81c03f47e572c51ee31e04 Mon Sep 17 00:00:00 2001 From: RaghavOS Date: Wed, 22 Jan 2025 15:12:09 +0530 Subject: [PATCH 3/3] null value handling --- src/js/input-range/input-range.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/input-range/input-range.jsx b/src/js/input-range/input-range.jsx index 79d18f0..16a0124 100644 --- a/src/js/input-range/input-range.jsx +++ b/src/js/input-range/input-range.jsx @@ -137,7 +137,7 @@ export default class InputRange extends React.Component { * @return {ClientRect} */ getTrackClientRect() { - return this.trackNode.getClientRect(); + return this.trackNode?.getClientRect(); } /**