Fallbacks and specification for intersection observer on auto_submit.

Created on 12 March 2024, 8 months ago
Updated 18 September 2024, about 2 months ago

Problem/Motivation

While working with a form with datepicker, we noticed it is still interacting with forms that have auto submit enabled, hijacking the form focus from other elements. I know that datepicker is not supported, however I don't think that it should interfere with the rest of the form inputs.

Steps to reproduce

Create a form that is using auto submit through the views UI, and include a bef-datepicker input. Note that when trying to auto submit after using the date picker, that it sometimes holds focus after interacting with another non-datepicker input.

Proposed resolution

Provide better specificity for excluding datepickers from certain selectors, and provide fallbacks for when a form has no clear input to focus. MR will be provided.
Additionally, I updated the JS in this file to ES6 standards. if that is not okay, please let me know and I can remove that or do those changes in another issue if preferred.

Remaining tasks

Review proposed changes, improve on the proposition.

✨ Feature request
Status

Fixed

Version

7.0

Component

Code

Created by

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