Add Better Exposed Filters support

Created on 26 July 2024, 5 months ago
Updated 17 August 2024, 4 months ago

Problem/Motivation

Recently Better Exposed Filters support for Chosen integration was removed in Remove "chosen-js" support πŸ› Remove "chosen-js" support Fixed . They removed some code that took into account the Chosen input to search in the select so it wouldn't be autosubmitted automatically right after writing. That code had been previously added in Do not autosubmit view if using a chosen.js search widget β†’ but caused other problems.

Steps to reproduce

As a consecuence, after updating to Better Exposed Filters to 6.0.4 or newer, and using Chosen on a select filter, makes the input search unusable because it auto-submits the form right after the user type just a character.

Proposed resolution

As it says in the issue, Better Exposed Filters module already has a way to disable automatic submission of input fields using the [data-bef-auto-submit-exclude] attribute. So we just need to add that attribute to the element when the module is enabled.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain juanolalla

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024