@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 +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.cjs +3 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -0
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
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");
|