easy-toggle-state
easy-toggle-state copied to clipboard
Outside event had a Bug
Describe the bug
When you set data-outside-event="scroll"
, will be console error: "TypeError: eTarget.closest is not a function"
To Reproduce Steps to reproduce the behavior:
- Set a trigger data:
data-outside-event="scroll"
- Open target
- Scroll down|up
- See error
Expected behavior
var e = ("closest" in eTarget) && eTarget.closest("[".concat(TARGET_STATE, "=\"true\"]"));
Screenshots
Desktop (please complete the following information):
- Chrome
- All Devices and browsers