craft icon indicating copy to clipboard operation
craft copied to clipboard

Optimize autocomplete component

Open KarelJanVanHaute opened this issue 11 months ago • 2 comments

Change the dynamicContentObserver to this.

DOMHelper.onDynamicContent(
      document.documentElement,
      "select[data-s-autocomplete]",
      (autocompletes) => {
        Array.from(autocompletes).forEach((ac: HTMLSelectElement, index) => {
          if (!ac.hasAttribute("data-s-autocomplete")) return;
          new Autocomplete(ac, index);
        });
      },
      "data-s-autocomplete"
    );

KarelJanVanHaute avatar Mar 20 '24 17:03 KarelJanVanHaute

Also update with the changes in https://bitbucket.org/statikbe/gsvfie/commits/7df1f7a001dc3f2f1f6c690788a355afb5c99c71

KarelJanVanHaute avatar Mar 20 '24 17:03 KarelJanVanHaute