easy-toggle-state icon indicating copy to clipboard operation
easy-toggle-state copied to clipboard

Outside event had a Bug

Open bozdevs opened this issue 3 weeks ago • 0 comments

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:

  1. Set a trigger data: data-outside-event="scroll"
  2. Open target
  3. Scroll down|up
  4. See error

Expected behavior

var e = ("closest" in eTarget) && eTarget.closest("[".concat(TARGET_STATE, "=\"true\"]"));

Screenshots image image

Desktop (please complete the following information):

  • Chrome
  • All Devices and browsers

bozdevs avatar Jun 12 '24 16:06 bozdevs