@shopify/react-form-state
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -7,2 +7,12 @@ # Changelog | ||
## [0.7.0] - 2019-01-11 | ||
### Added | ||
- You can now use the onInitialValueChanged prop with fields having nested properties. [#464](https://github.com/Shopify/quilt/pull/464) | ||
### Fixed | ||
- `submit` now checks for the existence of `preventDefault` on the event passed in before calling it. [#465](https://github.com/Shopify/quilt/pull/465) | ||
## [0.6] | ||
@@ -9,0 +19,0 @@ |
@@ -123,3 +123,3 @@ "use strict"; | ||
} | ||
if (event && !event.defaultPrevented) { | ||
if (event && event.preventDefault && !event.defaultPrevented) { | ||
event.preventDefault(); | ||
@@ -280,3 +280,3 @@ } | ||
var oldField = oldFields[key]; | ||
if (value === oldField.initialValue) { | ||
if (isEqual_1.default(value, oldField.initialValue)) { | ||
return oldField; | ||
@@ -283,0 +283,0 @@ } |
{ | ||
"name": "@shopify/react-form-state", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Manage react forms tersely and type-safe with no magic.", |
@@ -184,3 +184,3 @@ /* eslint-disable no-case-declarations */ | ||
if (event && !event.defaultPrevented) { | ||
if (event && event.preventDefault && !event.defaultPrevented) { | ||
event.preventDefault(); | ||
@@ -399,3 +399,3 @@ } | ||
if (value === oldField.initialValue) { | ||
if (isEqual(value, oldField.initialValue)) { | ||
return oldField; | ||
@@ -402,0 +402,0 @@ } |
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
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
170930
3685