Skip to content

Commit

Permalink
Fix for calling non-cancellable scroll events (#5771)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu4mo authored Oct 26, 2024
1 parent a8b8f43 commit 781284a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tender-tools-applaud.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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

0 comments on commit 781284a

Please sign in to comment.