react-flatpickr
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -21,2 +21,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -72,6 +74,10 @@ | ||
value: function render() { | ||
var _props = this.props, | ||
onChange = _props.onChange, | ||
props = _objectWithoutProperties(_props, ['onChange']); | ||
var id = this.state.id; | ||
// ignore onChange | ||
return _react2.default.createElement('input', _extends({}, this.props, { id: id })); | ||
return _react2.default.createElement('input', _extends({}, props, { id: id })); | ||
} | ||
@@ -78,0 +84,0 @@ }]); |
@@ -34,6 +34,7 @@ | ||
render() { | ||
const { onChange, ...props } = this.props | ||
const { id } = this.state | ||
// ignore onChange | ||
return ( | ||
<input {...this.props} id={id} /> | ||
<input {...props} id={id} /> | ||
) | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "react-flatpickr", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "flatpickr for React", | ||
@@ -25,3 +25,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"flatpickr": "^2.0.5" | ||
"flatpickr": "^2.1.1" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1768211
20728
398
Updatedflatpickr@^2.1.1