From ee47154152952f29dbf0a3a8d4f1adfb0f2be324 Mon Sep 17 00:00:00 2001 From: Todd Burnside Date: Fri, 15 Nov 2024 12:14:32 -0800 Subject: [PATCH] Dropdown issue 7423: preventDefault on click --- 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; };