react-period-of-stay-input
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "react-period-of-stay-input", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "React.js component for entering a period of stay in a hotel: check-in + check-out date", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,4 +33,8 @@ /* global window */ | ||
if (isPolyfilled()) { | ||
window.$(this.getDOMNode()).datepicker({dateFormat: 'yy-mm-dd', firstDay: 1}); | ||
window.$(this.getDOMNode()).on('change', this.handleEdit); | ||
window.$(this.getDOMNode()).datepicker({ | ||
dateFormat: 'yy-mm-dd', | ||
firstDay: 1 | ||
}).on('change', this.handleEdit).on('blur', function () { | ||
this.setState({draftValue: null}); | ||
}.bind(this)); | ||
} | ||
@@ -37,0 +41,0 @@ }.bind(this), 500); |
Sorry, the diff of this file is not supported yet
113323
725