From 781284a97059b80c07eb77bc871540fe99304e8f Mon Sep 17 00:00:00 2001 From: Tuomo Raitila Date: Sat, 26 Oct 2024 06:36:48 +0300 Subject: [PATCH 1/3] Fix for calling non-cancellable scroll events (#5771) --- .changeset/tender-tools-applaud.md | 5 +++++ packages/react-select/src/internal/useScrollLock.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tender-tools-applaud.md 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) { From 1e5a069b22320078f4705a39ad656b4fdca1d6ae Mon Sep 17 00:00:00 2001 From: Bob Conan Date: Fri, 25 Oct 2024 22:43:19 -0500 Subject: [PATCH 2/3] Update README.md, fix a typo (#5966) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffd55f5476..99367b05d5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The Select control for [React](https://reactjs.org). Initially built for use in See [react-select.com](https://www.react-select.com) for live demos and comprehensive docs. `react-select` is funded by [Thinkmill](https://www.thinkmill.com.au) and [Atlassian](https://atlaskit.atlassian.com). -We are an open source project that is continously supported by the community. +We are an open source project that is continuously supported by the community. React Select helps you develop powerful select components that _just work_ out of the box, without stopping you from customising the parts that are important to you. From 28251dc5bac1fbb5863b5095f0ca94d7091926e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 20:49:53 -0700 Subject: [PATCH 3/3] Version Packages (#5968) Co-authored-by: github-actions[bot] --- .changeset/tender-tools-applaud.md | 5 ----- packages/react-select/CHANGELOG.md | 6 ++++++ packages/react-select/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/tender-tools-applaud.md diff --git a/.changeset/tender-tools-applaud.md b/.changeset/tender-tools-applaud.md deleted file mode 100644 index 59fc1fb74a..0000000000 --- a/.changeset/tender-tools-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-select': patch ---- - -Fix for calling non-cancellable scroll events diff --git a/packages/react-select/CHANGELOG.md b/packages/react-select/CHANGELOG.md index b35dec3bce..02a1bda72c 100644 --- a/packages/react-select/CHANGELOG.md +++ b/packages/react-select/CHANGELOG.md @@ -1,5 +1,11 @@ # react-select +## 5.8.2 + +### Patch Changes + +- [`781284a9`](https://github.com/JedWatson/react-select/commit/781284a97059b80c07eb77bc871540fe99304e8f) [#5771](https://github.com/JedWatson/react-select/pull/5771) Thanks [@tu4mo](https://github.com/tu4mo)! - Fix for calling non-cancellable scroll events + ## 5.8.1 ### Patch Changes diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 442d9e04f5..673296aa6b 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "react-select", - "version": "5.8.1", + "version": "5.8.2", "description": "A Select control built with and for ReactJS", "main": "dist/react-select.cjs.js", "module": "dist/react-select.esm.js",