From 4e5cc1ceaab07f612788992588bbc0d72695c114 Mon Sep 17 00:00:00 2001 From: Todd Burnside Date: Fri, 15 Nov 2024 17:27:20 -0300 Subject: [PATCH] Dropdown issue 7423: preventDefault on click (#7424) --- components/lib/dropdown/Dropdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index b4ccfe30b1..40642fa668 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -132,6 +132,7 @@ export const Dropdown = React.memo( overlayVisibleState ? hide() : show(); } + event.preventDefault(); clickedRef.current = true; };