Skip to content

Commit

Permalink
chore: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo2 committed Jan 22, 2024
1 parent c64801c commit 7a706e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changeset/selfish-timers-add.md
@@ -0,0 +1,11 @@
---
"react-select": patch
---

Use an 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 change was initiated to fix the interop between react-select and react-beautiful-dnd.
But has meaning on its own because it is pretty clear that using the `defaultPrevented` event property for custom logic is a really bad practice.
So, another way to filter when we want to trigger control onMouseDown normal logic has to be better defined and developed.

Nothing to update from the consumers.

0 comments on commit 7a706e6

Please sign in to comment.