@syntropysoft/syntropyfront 0.4.5 → 0.4.6
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/NOTICE +1 -1
- package/README.md +3 -3
- package/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2234,7 +2234,7 @@ const DOM_UTILS = {
|
|
|
2234
2234
|
'[role="button"]', '[role="link"]', '[role="checkbox"]', '[role="radio"]',
|
|
2235
2235
|
'[role="menuitem"]', '[role="option"]', '[role="switch"]', '[role="tab"]',
|
|
2236
2236
|
'.interactive', '.btn', '.clickable', // Convention selectors
|
|
2237
|
-
'[onclick]', '[ng-click]', '[v-on:click]'
|
|
2237
|
+
'[onclick]', '[ng-click]', '[v-on:click]' // Framework click attributes (@click is invalid in CSS selectors)
|
|
2238
2238
|
].join(', '),
|
|
2239
2239
|
|
|
2240
2240
|
/**
|
|
@@ -2260,14 +2260,18 @@ const DOM_UTILS = {
|
|
|
2260
2260
|
},
|
|
2261
2261
|
|
|
2262
2262
|
/**
|
|
2263
|
-
|
|
2264
|
-
|
|
2263
|
+
* Finds the interactive target using closest() with CSS fallback (declarative).
|
|
2264
|
+
* Uses try/catch so invalid selectors (e.g. from old bundles) don't break the app.
|
|
2265
|
+
*/
|
|
2265
2266
|
findInteractiveTarget: (el) => {
|
|
2266
|
-
// Guard: valid element
|
|
2267
2267
|
if (!el || el === document.body || el.nodeType !== 1) return null;
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2268
|
+
try {
|
|
2269
|
+
const found = el.closest(DOM_UTILS.INTERACTIVE_SELECTOR);
|
|
2270
|
+
if (found) return found;
|
|
2271
|
+
} catch (_) {
|
|
2272
|
+
// Invalid selector (e.g. [@click] in old builds) or browser quirk; fallback only
|
|
2273
|
+
}
|
|
2274
|
+
return DOM_UTILS.findTargetByStyle(el);
|
|
2271
2275
|
},
|
|
2272
2276
|
|
|
2273
2277
|
/**
|