Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebennett88 authored Oct 26, 2024
2 parents d03cef7 + 781284a commit 526a431
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 526a431

Please sign in to comment.