diff --git a/src/index.js b/src/index.js index f7efbd1..265af8e 100644 --- a/src/index.js +++ b/src/index.js @@ -95,7 +95,7 @@ function polyfillToggleEvent() { forEach.call(mutations, mutation => { const { target, attributeName } = mutation if (target.tagName == "DETAILS" && attributeName == "open") { - triggerToggle(toggle) + triggerToggle(target) } }) }).observe(document.documentElement, {