diff --git a/dist/details-element-polyfill.js b/dist/details-element-polyfill.js index 6f7f710..ee20b5a 100644 --- a/dist/details-element-polyfill.js +++ b/dist/details-element-polyfill.js @@ -1,5 +1,5 @@ /* -Details Element Polyfill 2.3.0 +Details Element Polyfill 2.3.1 Copyright © 2019 Javan Makhmali */ (function() { @@ -109,7 +109,7 @@ Copyright © 2019 Javan Makhmali forEach.call(mutations, function(mutation) { var target = mutation.target, attributeName = mutation.attributeName; if (target.tagName == "DETAILS" && attributeName == "open") { - triggerToggle(toggle); + triggerToggle(target); } }); }).observe(document.documentElement, { diff --git a/package.json b/package.json index 3b05cee..b9d2047 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "details-element-polyfill", - "version": "2.3.0", + "version": "2.3.1", "description": "HTML
element polyfill", "main": "dist/details-element-polyfill.js", "files": [