element-internals-polyfill
Advanced tools
Comparing version 0.1.37 to 0.1.38
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.38](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.37...v0.1.38) (2021-06-07) | ||
### Bug Fixes | ||
* add attribute filter to disabled observer ([329a620](https://github.com/calebdwilliams/element-internals-polyfill/commit/329a6204186e8d916dd94302eadeed2d3f265ad7)) | ||
### [0.1.37](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.36...v0.1.37) (2021-05-27) | ||
@@ -7,0 +14,0 @@ |
@@ -18,8 +18,7 @@ (function () { | ||
const observerConfig$1 = { attributes: true }; | ||
const observerConfig$1 = { attributes: true, attributeFilter: ['disabled'] }; | ||
const observer = new MutationObserver((mutationsList) => { | ||
for (const mutation of mutationsList) { | ||
const attributeName = mutation.attributeName; | ||
const target = mutation.target; | ||
if (attributeName === 'disabled' && target.constructor['formAssociated']) { | ||
if (target.constructor['formAssociated']) { | ||
if (target.formDisabledCallback) { | ||
@@ -26,0 +25,0 @@ target.formDisabledCallback.apply(target, [target.hasAttribute('disabled')]); |
{ | ||
"name": "element-internals-polyfill", | ||
"version": "0.1.37", | ||
"version": "0.1.38", | ||
"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
62673
861