Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for calling non-cancellable scroll events #5771

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tender-tools-applaud.md
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Fix for calling non-cancellable scroll events
2 changes: 1 addition & 1 deletion packages/react-select/src/internal/useScrollLock.ts
Expand Up @@ -16,7 +16,7 @@ const LOCK_STYLES = {
};

function preventTouchMove(e: TouchEvent) {
e.preventDefault();
if (e.cancelable) e.preventDefault();
}

function allowTouchMove(e: TouchEvent) {
Expand Down