react-time-picker
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -26,3 +26,4 @@ "use strict"; | ||
var _excluded = ["clockClassName", "className", "maxDetail", "onChange", "value"]; | ||
var _excluded = ["clockClassName", "className", "maxDetail", "onChange", "value"], | ||
_excluded2 = ["onChange"]; | ||
@@ -339,2 +340,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var eventProps = this.eventProps; | ||
var _this$props5 = this.props, | ||
@@ -344,5 +346,9 @@ className = _this$props5.className, | ||
var isOpen = this.state.isOpen; | ||
var onChange = eventProps.onChange, | ||
eventPropsWithoutOnChange = _objectWithoutProperties(eventProps, _excluded2); | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({ | ||
className: (0, _mergeClassNames["default"])(baseClassName, "".concat(baseClassName, "--").concat(isOpen ? 'open' : 'closed'), "".concat(baseClassName, "--").concat(disabled ? 'disabled' : 'enabled'), className) | ||
}, this.eventProps, { | ||
}, eventPropsWithoutOnChange, { | ||
onFocus: this.onFocus, | ||
@@ -349,0 +355,0 @@ ref: function ref(_ref) { |
{ | ||
"name": "react-time-picker", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"description": "A time picker for your React app.", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -257,5 +257,8 @@ import React, { PureComponent } from 'react'; | ||
render() { | ||
const { eventProps } = this; | ||
const { className, disabled } = this.props; | ||
const { isOpen } = this.state; | ||
const { onChange, ...eventPropsWithoutOnChange } = eventProps; | ||
return ( | ||
@@ -269,3 +272,3 @@ <div | ||
)} | ||
{...this.eventProps} | ||
{...eventPropsWithoutOnChange} | ||
onFocus={this.onFocus} | ||
@@ -272,0 +275,0 @@ ref={(ref) => { |
213900
5470