diff --git a/.changeset/tender-tools-applaud.md b/.changeset/tender-tools-applaud.md new file mode 100644 index 0000000000..59fc1fb74a --- /dev/null +++ b/.changeset/tender-tools-applaud.md @@ -0,0 +1,5 @@ +--- +'react-select': patch +--- + +Fix for calling non-cancellable scroll events diff --git a/packages/react-select/src/internal/useScrollLock.ts b/packages/react-select/src/internal/useScrollLock.ts index 357adafd2d..150a0a6f99 100644 --- a/packages/react-select/src/internal/useScrollLock.ts +++ b/packages/react-select/src/internal/useScrollLock.ts @@ -16,7 +16,7 @@ const LOCK_STYLES = { }; function preventTouchMove(e: TouchEvent) { - e.preventDefault(); + if (e.cancelable) e.preventDefault(); } function allowTouchMove(e: TouchEvent) {