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

react-datetime

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datetime - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

5

DateTime.js

@@ -25,2 +25,3 @@ 'use strict';

date: TYPES.object,
onBlur: TYPES.func,
onChange: TYPES.func,

@@ -43,2 +44,3 @@ locale: TYPES.string,

input: true,
onBlur: function () {},
onChange: function (x) {

@@ -222,3 +224,3 @@ console.log(x);

inputValue: date.format( this.state.inputFormat )
});
}, this.callOnChange );
},

@@ -231,2 +233,3 @@

handleClickOutside: function(){
this.props.onBlur(this.state.inputValue);
if( this.props.input && this.state.open )

@@ -233,0 +236,0 @@ this.setState({ open: false });

2

package.json
{
"name": "react-datetime",
"version": "0.4.0",
"version": "0.4.1",
"description": "A lightweight but complete datetime picker React.js component.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/arqex/react-datetime",

@@ -40,2 +40,3 @@ react-datetime

| **onChange** | function | x => console.log(x) | Callback trigger when the date changes |
| **onBlur** | function | empty function | Callback trigger for when the user clicks outside of the input, simulating a regular onBlur |
| **viewMode** | string or number | 'days' | The default view to display when the picker is shown. ('years', 'months', 'days', 'time') |

@@ -42,0 +43,0 @@ | **inputProps** | object | undefined | Defines additional attributes for the input element of the component. |

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