Error triggered by classname when using ajax

Created on 23 January 2025, 2 months ago

Problem/Motivation

When having grouped fields (tabs) and paragraphs enabled, the use of the class 'error' causes the functionality to automatically focus on this field when opening a paragraph. The reason is the class 'error'. This is why I propose to change the name from 'error' to 'exceeded'. This way, the functionality keeps working both when an AJAX request is called and when the data limit is exceeded, as it's used to render the color in CSS rather than actually focusing on the element itself during AJAX calls.

Steps to reproduce

Add multiple fields to different field groups (tabs), also enable paragraphs or other AJAX fields in a different field tab than the maxlength field that is exceeded. Then trigger the AJAX functionality in a this tab and observe that the maxlength field gets the focus. After applying the patch, this behavior is no longer happening.

Proposed resolution

Make a MR based on the patch

Remaining tasks

Test if the functionality keeps working correctly

  • ✅ Get maintainer approval for the proposed resolution
  • ✅ Implement resolution
  • ❌ Write test coverage (contact a maintainer if you need help)
  • ❌ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇳🇱Netherlands Remco Hoeneveld

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

Comments & Activities

Production build 0.71.5 2024