@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.cjs CHANGED
@@ -5504,6 +5504,9 @@ function createClickHandler(navigate2) {
5504
5504
  if (ev.metaKey || ev.ctrlKey || ev.shiftKey || ev.altKey) return;
5505
5505
  const target = ev.target;
5506
5506
  if (!target) return;
5507
+ const tagName = target.tagName.toLowerCase();
5508
+ const isInteractiveElement = tagName === "input" || tagName === "textarea" || tagName === "button" || tagName === "select" || target.isContentEditable || target.closest("input, textarea, button, select, [contenteditable]");
5509
+ if (isInteractiveElement) return;
5507
5510
  const anchor = target.closest("a[href]");
5508
5511
  if (!anchor) return;
5509
5512
  const href = anchor.getAttribute("href");