Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-date-picker - npm Package Compare versions

Comparing version 8.3.5 to 8.3.6

4

dist/DateInput.js

@@ -560,3 +560,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;

@@ -563,0 +565,0 @@ }

@@ -143,2 +143,8 @@ "use strict";

_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) {
if (event.key === 'Escape') {
_this.closeCalendar();
}
});
_defineProperty(_assertThisInitialized(_this), "openCalendar", function () {

@@ -221,2 +227,3 @@ _this.setState({

});
document[fnName]('keydown', this.onKeyDown);
}

@@ -223,0 +230,0 @@ }, {

{
"name": "react-date-picker",
"version": "8.3.5",
"version": "8.3.6",
"description": "A date picker for your React app.",

@@ -5,0 +5,0 @@ "main": "dist/entry.js",

@@ -290,2 +290,4 @@ import React, { createRef, PureComponent } from 'react';

});
// See: https://github.com/wojtekmaj/react-date-picker/issues/396
placeholder = placeholder.replace('17', 'y');

@@ -292,0 +294,0 @@ return placeholder;

@@ -95,2 +95,8 @@ import React, { PureComponent } from 'react';

onKeyDown = (event) => {
if (event.key === 'Escape') {
this.closeCalendar();
}
}
openCalendar = () => {

@@ -124,2 +130,3 @@ this.setState({ isOpen: true });

outsideActionEvents.forEach((eventName) => document[fnName](eventName, this.onOutsideAction));
document[fnName]('keydown', this.onKeyDown);
}

@@ -126,0 +133,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc