Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variant Autocomplete: Allow passing select2 options #5861

Merged

Commits on Sep 25, 2024

  1. Variant Autocomplete: Allow passing select2 options

    This change allows users of the variant autocomplete to customize the
    behavior of select2, rather that just discarding all the keys that are
    not `searchParameters`.
    
    We're using this for a custom controller in which we want to be able to
    filter by variant, and be able to clear the selection.
    
    So in that controller, we can do:
    
    ```js
    const inputElement = document.getElementById('variantInput')
    inputElement.variantAutocomplete({ allowClear: true })
    ```
    mamhoff committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    dce4abb View commit details
    Browse the repository at this point in the history