Commit 8fe03583 authored by Rob Phillips's avatar Rob Phillips
Browse files

Issue #3285073 by robphillips: Fix JavaScript code validation issues.

parent 5951a70a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
((Drupal, once) => {
((Drupal, once, Choices) => {
  /**
   * Provides Choices.js autocomplete plugin.
   */
@@ -18,14 +18,17 @@

      // Instantiate Choices.js.
      const config = JSON.parse(element.dataset.choices);
      config.loadingText = Drupal.theme("ajaxProgressThrobber", config.loadingText);
      config.loadingText = Drupal.theme(
        "ajaxProgressThrobber",
        config.loadingText
      );
      this.choices = new Choices(element, {
        ...config,
        shouldSort: false,
        allowHTML: true,
        removeItemButton: true,
        classNames: {
          containerOuter: 'choices choices--autocomplete',
          containerOuter: "choices choices--autocomplete",
          item: "choices__item choices__item--autocomplete",
        },
      });
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
        allowHTML: true,
        removeItemButton: true,
        classNames: {
          containerOuter: 'choices choices--autocomplete',
          containerOuter: "choices choices--autocomplete",
          item: "choices__item choices__item--autocomplete"
        }
      });