glud-component
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -24,6 +24,2 @@ 'use strict'; | ||
var _classnames = require('classnames'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _Input = require('../Input'); | ||
@@ -123,6 +119,2 @@ | ||
var classNameBoxDaterange = (0, _classnames2.default)('box-datarange-wrapper', { | ||
show: isShowCalendar | ||
}); | ||
return _react2.default.createElement( | ||
@@ -149,5 +141,5 @@ 'div', | ||
}), | ||
_react2.default.createElement( | ||
isShowCalendar && _react2.default.createElement( | ||
'div', | ||
{ className: classNameBoxDaterange }, | ||
{ className: 'box-datarange-wrapper show' }, | ||
_react2.default.createElement('a', { className: 'delete', onClick: this.handleClickCloseDatePicker }), | ||
@@ -154,0 +146,0 @@ _react2.default.createElement(_reactDaterangePicker2.default, { |
@@ -28,6 +28,2 @@ 'use strict'; | ||
var _classnames = require('classnames'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _Input = require('../Input'); | ||
@@ -85,2 +81,3 @@ | ||
_this.props.onFocus(e); | ||
_this.input.blurInput(); | ||
}, _this.handleClickCloseDatePicker = function () { | ||
@@ -112,2 +109,4 @@ _this.onCloseDatePicker(); | ||
value: function render() { | ||
var _this2 = this; | ||
var _state = this.state, | ||
@@ -130,6 +129,2 @@ isShowCalendar = _state.isShowCalendar, | ||
var classNameBoxDaterange = (0, _classnames2.default)('box-datarange-wrapper', { | ||
show: isShowCalendar | ||
}); | ||
var startDate = (0, _get2.default)(dateRangeValue, 'start', null); | ||
@@ -143,2 +138,5 @@ var endDate = (0, _get2.default)(dateRangeValue, 'end', null); | ||
_react2.default.createElement(_Input2.default, { | ||
ref: function ref(input) { | ||
return _this2.input = input; | ||
}, | ||
onlyContain: onlyContain, | ||
@@ -158,5 +156,5 @@ label: label, | ||
}), | ||
_react2.default.createElement( | ||
isShowCalendar && _react2.default.createElement( | ||
'div', | ||
{ className: classNameBoxDaterange }, | ||
{ className: 'box-datarange-wrapper show' }, | ||
_react2.default.createElement('a', { className: 'delete', onClick: this.handleClickCloseDatePicker }), | ||
@@ -163,0 +161,0 @@ _react2.default.createElement(_reactDaterangePicker2.default, { |
{ | ||
"name": "glud-component", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
1447775
5208