From fdbf180f6ded2330392e17891aa979551d75002f Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Tue, 11 Feb 2020 16:29:17 +0900 Subject: [PATCH] fix(DatePicker): ensure down arrow opens calendar dropdown Refs #5310. --- .../react/src/components/DatePicker/plugins/fixEventsPlugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js b/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js index d93fde1b0ecf..457397685a9f 100644 --- a/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js +++ b/packages/react/src/components/DatePicker/plugins/fixEventsPlugin.js @@ -36,6 +36,9 @@ export default config => fp => { // so user can move the keyboard cursor for editing dates // Workaround for: https://github.com/flatpickr/flatpickr/issues/1943 event.stopPropagation(); + } else if (match(event, keys.ArrowDown)) { + event.preventDefault(); + fp.open(); } } };