react-flatpickr
Advanced tools
Comparing version 3.10.11 to 3.10.12
@@ -162,3 +162,5 @@ "use strict"; | ||
if (this.props.hasOwnProperty('value') && this.props.value !== prevProps.value) { | ||
if (this.props.hasOwnProperty('value') && !(this.props.value && Array.isArray(this.props.value) && prevProps.value && Array.isArray(prevProps.value) && this.props.value.every(function (v, i) { | ||
prevProps[i] === v; | ||
})) && this.props.value !== prevProps.value) { | ||
this.flatpickr.setDate(this.props.value, false); | ||
@@ -165,0 +167,0 @@ } |
@@ -82,3 +82,15 @@ import React, { Component } from 'react' | ||
if (this.props.hasOwnProperty('value') && this.props.value !== prevProps.value) { | ||
if ( | ||
this.props.hasOwnProperty('value') && | ||
!( | ||
this.props.value && | ||
Array.isArray(this.props.value) && | ||
prevProps.value && | ||
Array.isArray(prevProps.value) && | ||
this.props.value.every((v, i) => { | ||
prevProps[i] === v | ||
}) | ||
) && | ||
this.props.value !== prevProps.value | ||
) { | ||
this.flatpickr.setDate(this.props.value, false) | ||
@@ -85,0 +97,0 @@ } |
{ | ||
"name": "react-flatpickr", | ||
"version": "3.10.11", | ||
"version": "3.10.12", | ||
"description": "flatpickr for React", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
27610
361