Apply select2 on the front end

Created on 29 July 2020, almost 4 years ago
Updated 28 January 2023, over 1 year ago

Problem/Motivation

Select2 does not appear to be being applied on the front end of the website

Steps to reproduce

Install select2 all the things module, create a simple view with exposed filter as a block and place it in a region where it can be found on the website.

✨ Feature request
Status

Postponed: needs info

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom vaccinemedia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

    Adding the #select2 key to a form element is only a manual control/override, it is not required. It should still work automatically for all selects with a couple of conditions:
    1. The select needs to be visible (if it's hidden or in a collapsed section by default, it won't convert)
    2. It needs to have at least 10 options for a single select or 5 options for a multiple select.

Production build 0.69.0 2024