Add option to close multiselects when submitting through AJAX views

Created on 12 May 2024, 7 months ago
Updated 23 May 2024, 7 months ago

Problem/Motivation

Currently there are a few different behaviors:

  1. When clicking the submit button in the dropdown the values are applied and the dropdown is not re-opened on AJAX load.
  2. When clicking the view submit button an open dropdown is re-opened.
  3. When submitting through the keyboard, enter submits the form and re-opens the dropdown with the same focused checkbox.
  4. When submitting through the keyboard, shift-enter submits the form, closes the dropdown, and focuses the results.

Proposed resolution

Add a new option to control the behavior of dropdown re-opening when used with AJAX. The behaviors above will be changed to:

  1. When clicking the submit button in the dropdown the values are applied and the dropdown is re-opened on AJAX load based on the config value setting.
  2. When clicking the view submit button an open dropdown is is re-opened on AJAX load based on the config value setting.
  3. When submitting through the keyboard, enter submits the form and re-opens the dropdown with the same focused checkbox regardless of the config value setting.
  4. When submitting through the keyboard, shift-enter submits the form, closes the dropdown, and focuses the results regardless of the config value setting.

API changes

No changes.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States benabaird

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