@lolyjs/core 0.1.0-alpha.2 → 0.1.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5462,6 +5462,9 @@ function createClickHandler(navigate2) {
5462
5462
  if (ev.metaKey || ev.ctrlKey || ev.shiftKey || ev.altKey) return;
5463
5463
  const target = ev.target;
5464
5464
  if (!target) return;
5465
+ const tagName = target.tagName.toLowerCase();
5466
+ const isInteractiveElement = tagName === "input" || tagName === "textarea" || tagName === "button" || tagName === "select" || target.isContentEditable || target.closest("input, textarea, button, select, [contenteditable]");
5467
+ if (isInteractiveElement) return;
5465
5468
  const anchor = target.closest("a[href]");
5466
5469
  if (!anchor) return;
5467
5470
  const href = anchor.getAttribute("href");