Skip to content

Commit

Permalink
fix(DatePicker): ensure down arrow opens calendar dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh committed Feb 11, 2020
1 parent 55f44c9 commit fdbf180
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
};
Expand Down

0 comments on commit fdbf180

Please sign in to comment.