Skip to content

Commit

Permalink
close Picker on ESC in DateInput
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkr07 committed Dec 19, 2020
1 parent 46a4444 commit fb67305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class Calendar extends React.Component {

onKeyDown = (event) => {
if (event.target.nodeName.toLowerCase() === 'input') {
this.props.onKeyDown(event);
return undefined;
}
const keyCode = event.keyCode;
Expand Down

0 comments on commit fb67305

Please sign in to comment.