From 22c33e00b5fdabc35ea0d5aa8a5c198e500e8664 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 27 Apr 2022 14:53:26 -0400 Subject: [PATCH] Fix #1929: Dropdown ENTER key open panel --- components/lib/dropdown/Dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index cf24b54854..6db3dddb90 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -113,7 +113,7 @@ export const Dropdown = React.memo(React.forwardRef((props, ref) => { //enter case 13: - hide(); + overlayVisibleState ? hide() : show(); event.preventDefault(); break;