react-datetime-picker
Advanced tools
Comparing version 3.4.2 to 3.4.3
@@ -718,3 +718,5 @@ "use strict"; | ||
placeholder = placeholder.replace(formattedDatePiece, datePieceReplacement); | ||
}); | ||
}); // See: https://github.com/wojtekmaj/react-date-picker/issues/396 | ||
placeholder = placeholder.replace('17', 'y'); | ||
return placeholder; | ||
@@ -721,0 +723,0 @@ } |
@@ -176,2 +176,8 @@ "use strict"; | ||
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) { | ||
if (event.key === 'Escape') { | ||
_this.closeWidgets(); | ||
} | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "openClock", function () { | ||
@@ -282,2 +288,3 @@ _this.setState({ | ||
}); | ||
document[fnName]('keydown', this.onKeyDown); | ||
} | ||
@@ -284,0 +291,0 @@ }, { |
{ | ||
"name": "react-datetime-picker", | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"description": "A date range picker for your React app.", | ||
@@ -79,3 +79,4 @@ "main": "dist/entry.js", | ||
}, | ||
"funding": "https://github.com/wojtekmaj/react-datetime-picker?sponsor=1" | ||
"funding": "https://github.com/wojtekmaj/react-datetime-picker?sponsor=1", | ||
"packageManager": "yarn@3.1.0" | ||
} |
@@ -288,2 +288,4 @@ import React, { createRef, PureComponent } from 'react'; | ||
}); | ||
// See: https://github.com/wojtekmaj/react-date-picker/issues/396 | ||
placeholder = placeholder.replace('17', 'y'); | ||
@@ -290,0 +292,0 @@ return placeholder; |
@@ -153,2 +153,8 @@ import React, { PureComponent } from 'react'; | ||
onKeyDown = (event) => { | ||
if (event.key === 'Escape') { | ||
this.closeWidgets(); | ||
} | ||
} | ||
openClock = () => { | ||
@@ -199,2 +205,3 @@ this.setState({ | ||
outsideActionEvents.forEach((eventName) => document[fnName](eventName, this.onOutsideAction)); | ||
document[fnName]('keydown', this.onKeyDown); | ||
} | ||
@@ -201,0 +208,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200395
4790