Chosen widget has no option to autosubmit when you select an item from the list of choices

Created on 14 March 2025, 6 months ago

Problem/Motivation

I am looking for a widget that will work as the chosen one does but with the option to autosubmit. This seems to have been possible with earlier versions of chosen ( e.g. Chosen 8.x-2.10 running on another site seems to be working this way )

Am using chosen on search_api view with facets as better exposed filters, and trying to use chosen on the selects and multiselects - neither will autosubmit (it works but i have to click submit button after each choice)

Is there any way to get the plugin to do this - maybe through a fapi override or something?

✨ Feature request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom gsquirrel London

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

Comments & Activities

  • Issue created by @gsquirrel
  • πŸ‡ΊπŸ‡¦Ukraine myha

    Not sure it's properly solution, bot for making it work I trigger 'change' event of the exposed form.

  • πŸ‡ΊπŸ‡¦Ukraine myha

    Updated my patch.

  • πŸ‡©πŸ‡ͺGermany dbielke1986

    Same here. In earlier version it was possible, but not since switching to version 5.x

  • πŸ‡­πŸ‡ΊHungary nagy.balint

    So based on πŸ› Add Better Exposed Filters support Fixed
    data-bef-auto-submit-exclude attribute was added, which was also in 4.x so by earlier version perhaps you meant 3.x

    the issue that was solved by this is

    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.

    So then the solution here is to revert that change, but to solve the original issue in a better way.

  • πŸ‡¬πŸ‡§United Kingdom gsquirrel London

    If solve the original issue is too challenging maybe this could be a tickbox option with a warning about that possible side effect? So that people who are willing to live with that can have autosubmit possible?

Production build 0.71.5 2024