@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 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
- if (!evt.target.matches('li')) {
2209
+ const li = evt.target.closest('li');
2210
+ if (!li) {
2210
2211
  this.hide();
2211
2212
  return;
2212
2213
  }
2213
- this.#change(evt.target);
2214
+ this.#change(li);
2214
2215
  });
2215
2216
  this.replaceChildren(fragment);
2216
2217
  }