From b6df68004fecdd89754f66ad5216b045e65ba314 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 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index cf24b54854..f3ade89b53 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -104,16 +104,10 @@ export const Dropdown = React.memo(React.forwardRef((props, ref) => { onUpKey(event); break; - //space + //space and enter case 32: - overlayVisibleState ? hide() : show(); - - event.preventDefault(); - break; - - //enter case 13: - hide(); + overlayVisibleState ? hide() : show(); event.preventDefault(); break;