Skip to content

Conversation

mdo2
Copy link

@mdo2 mdo2 commented Jan 22, 2024

Use internal member to check if control onMouseDown should act and remove logic to bail out from an event if someone else listening to the event (usually in a capture phase) has called preventDefault().

This fixes interop between react-select and react-beautiful-dnd.

This is intended to be a temporal fix, as a better solution must be developed.

Closes #5833, #5176

Another PR about this: #5842

This is intended to be a temporal fix, as I think a better solution must be developed. Referenced issues: JedWatson#5833, JedWatson#5176 Another PRs abaout this: JedWatson#5842
Copy link

changeset-bot bot commented Jan 22, 2024

🦋 Changeset detected

Latest commit: 3cde18e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-select Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Jan 22, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3cde18e:

Sandbox Source
react-codesandboxer-example Configuration
@mdo2 mdo2 force-pushed the fix/avoid-prevent-default branch from 7a706e6 to 3cde18e Compare January 22, 2024 13:41
@mdo2
Copy link
Author

mdo2 commented Jan 23, 2024

@lukebennett88, @emmatown, sorry for bothering you, but can you review this small fix?

This issue is blocking my team and many others. Also, there exist two issues, at least complaining about this behavior.

I appreciate any help you can provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant