@optionfactory/ful 7.0.0 → 7.0.1
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/ful.iife.js +3 -2
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +3 -2
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ful.iife.js
CHANGED
|
@@ -2206,11 +2206,12 @@ var ful = (function (exports, ftl) {
|
|
|
2206
2206
|
this.#menu = fragment.querySelector("menu");
|
|
2207
2207
|
this.#menu.addEventListener('click', evt => {
|
|
2208
2208
|
evt.stopPropagation();
|
|
2209
|
-
|
|
2209
|
+
const li = evt.target.closest('li');
|
|
2210
|
+
if (!li) {
|
|
2210
2211
|
this.hide();
|
|
2211
2212
|
return;
|
|
2212
2213
|
}
|
|
2213
|
-
this.#change(
|
|
2214
|
+
this.#change(li);
|
|
2214
2215
|
});
|
|
2215
2216
|
this.replaceChildren(fragment);
|
|
2216
2217
|
}
|