From 7a706e6adc29d2baa6f4a43809d825ec13d06191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Arribas=20Fern=C3=A1ndez?= Date: Mon, 22 Jan 2024 14:35:54 +0100 Subject: [PATCH] chore: add changeset --- .changeset/selfish-timers-add.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/selfish-timers-add.md diff --git a/.changeset/selfish-timers-add.md b/.changeset/selfish-timers-add.md new file mode 100644 index 0000000000..1a6dc9296a --- /dev/null +++ b/.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.