react-datetime-picker
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -553,3 +553,3 @@ 'use strict'; | ||
// Save a reference to each input field | ||
_this4[(name || ref.name) + 'Input'] = ref; | ||
_this4[name + 'Input'] = ref; | ||
} | ||
@@ -556,0 +556,0 @@ }; |
{ | ||
"name": "react-datetime-picker", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A date range picker for your React app.", | ||
@@ -49,5 +49,5 @@ "main": "dist/entry.js", | ||
"react-clock": "^2.2.1", | ||
"react-date-picker": "^6.11.0", | ||
"react-date-picker": "^6.11.2", | ||
"react-lifecycles-compat": "^3.0.4", | ||
"react-time-picker": "2.5.0" | ||
"react-time-picker": "2.5.1" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
@@ -25,2 +25,14 @@ import React from 'react'; | ||
describe('DateTimePicker', () => { | ||
it('passes name to DateTimeInput', () => { | ||
const name = 'testName'; | ||
const component = mount( | ||
<DateTimePicker name={name} /> | ||
); | ||
const dateTimeInput = component.find('DateTimeInput'); | ||
expect(dateTimeInput.prop('name')).toBe(name); | ||
}); | ||
it('applies className to its wrapper when given a string', () => { | ||
@@ -27,0 +39,0 @@ const className = 'testClassName'; |
@@ -203,3 +203,3 @@ import React, { PureComponent } from 'react'; | ||
// Save a reference to each input field | ||
this[`${name || ref.name}Input`] = ref; | ||
this[`${name}Input`] = ref; | ||
}, | ||
@@ -206,0 +206,0 @@ }; |
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
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
109381
2669
+ Addedreact-time-picker@2.5.1(transitive)
- Removedreact-time-picker@2.5.0(transitive)
Updatedreact-date-picker@^6.11.2
Updatedreact-time-picker@2.5.1