Skip to content

Julian - with Patch 6

Latest

Choose a tag to compare

@lewisgoddard lewisgoddard released this 12 Nov 10:58

Leaves the page's own click handlers on the trigger alone, and detects Escape by key name.

  • The trigger's click handler is added and removed under the leanModal namespace, so calling .leanModal() twice no longer stacks handlers and any click handler the page itself attached to the trigger survives. 2.6.5 removed every click handler on the trigger.
  • Escape is detected with event.key, with keyCode kept as a fallback for older browsers.
  • jQuery.leanModal2.min.js is rebuilt from source with terser 5.44.1 and parses.

Full Changelog: 2.6.5...2.6.6