Skip to content

Commit

Permalink
Dropdown issue 7423: preventDefault on click (#7424)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddburnside authored Nov 15, 2024
1 parent e86ddcc commit 4e5cc1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const Dropdown = React.memo(
overlayVisibleState ? hide() : show();
}

event.preventDefault();
clickedRef.current = true;
};

Expand Down

0 comments on commit 4e5cc1c

Please sign in to comment.