element-internals-polyfill
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.8](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.7...v0.1.8) (2021-02-19) | ||
### Bug Fixes | ||
* **setFormValue:** accept empty strings like Chrome ([#23](https://github.com/calebdwilliams/element-internals-polyfill/issues/23)) ([8f41892](https://github.com/calebdwilliams/element-internals-polyfill/commit/8f41892f6de7c494be880bcf193870a3c519ee5c)) | ||
### [0.1.7](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.6...v0.1.7) (2021-02-11) | ||
@@ -7,0 +14,0 @@ |
@@ -439,3 +439,3 @@ (function () { | ||
removeHiddenInputs(this); | ||
if (value && !(value instanceof FormData)) { | ||
if (value != null && !(value instanceof FormData)) { | ||
if (ref.getAttribute('name')) { | ||
@@ -446,3 +446,3 @@ const hiddenInput = createHiddenInput(ref, this); | ||
} | ||
else if (value && value instanceof FormData) { | ||
else if (value != null && value instanceof FormData) { | ||
value.forEach((formDataValue, formDataKey) => { | ||
@@ -449,0 +449,0 @@ if (typeof formDataValue === 'string') { |
{ | ||
"name": "element-internals-polyfill", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"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
51696