From fb67305be3b9dc2f526c82cc5bd1f7e38692b949 Mon Sep 17 00:00:00 2001 From: Vishal Kumar Date: Sun, 20 Dec 2020 00:44:54 +0530 Subject: [PATCH] close Picker on ESC in DateInput --- src/Calendar.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Calendar.jsx b/src/Calendar.jsx index a915941a..af39814d 100644 --- a/src/Calendar.jsx +++ b/src/Calendar.jsx @@ -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;