element-internals-polyfill
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.7](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.6...v0.1.7) (2021-02-11) | ||
### Bug Fixes | ||
* polyfill accepts non-string values like Chrome ([9ac948e](https://github.com/calebdwilliams/element-internals-polyfill/commit/9ac948e78a6ee7403f0d3515c5c8181b34bc366e)) | ||
### [0.1.6](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.5...v0.1.6) (2021-02-10) | ||
@@ -7,0 +14,0 @@ |
@@ -439,3 +439,3 @@ (function () { | ||
removeHiddenInputs(this); | ||
if (typeof value === 'string') { | ||
if (value && !(value instanceof FormData)) { | ||
if (ref.getAttribute('name')) { | ||
@@ -446,3 +446,3 @@ const hiddenInput = createHiddenInput(ref, this); | ||
} | ||
else if (value != null) { | ||
else if (value && value instanceof FormData) { | ||
value.forEach((formDataValue, formDataKey) => { | ||
@@ -449,0 +449,0 @@ if (typeof formDataValue === 'string') { |
{ | ||
"name": "element-internals-polyfill", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A polyfill for the element internals specification", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
51296