#107389Remaining character counter not visible in IRRE elements with maxlength validation
Description
When using IRRE elements with textarea fields that have a maximum character limit configured, the character counter provided by typo3-backend-formengine-char-counter is not entirely visible. The counter element is in fact rendered but is hidden behind/overlapped by subsequent form elements.
Steps to Reproduce
- Create a TCA configuration with IRRE elements
- Configure a textarea field with ‘max’ => 250 (or any character limit)
- Edit a record containing this IRRE element in the backend
- The character counter should appear below the textarea but is not or not entirely visible
Expected Behavior v Actual Behavior
The character counter should be visible below the textarea field, showing “Remaining characters: X” as it does in regular (non-IRRE) form elements.
However, the character counter element is present in the DOM but not visible due to CSS layering issues. The element gets covered by the next form section/fieldset.
Preliminary Analysis
The issue specifically occurs in IRRE contexts – regular form elements display the character counter correctly. This suggests the problem is related to the specific CSS context/nesting created by inline record editing containers.
- The typo3-backend-formengine-char-counter element is positioned outside the .form-control-wrap container.
- It has hidden=”“ attribute initially (removed by JavaScript).
- The element lacks proper CSS positioning/z-index/height to remain visible
- Subsequent fieldsets appear to overlay the counter element
The issue seems to be related to how typo3-backend-formengine-char-counter is positioned relative to its container and subsequent form elements in IRRE contexts. This affects usability in the backend as editors cannot see how many characters they have remaining when editing IRRE records with character limits.
Environment
TYPO3 Version: v13.4.17
Browser: Chrome 139, Firefox 142
Note
I think I’ve identified this as a CSS positioning/layering issue but don’t feel confident enough propose a proper core patch since you don’t want to have the fieldset.form-section to change height every time the counter is toggled. So, this might need a more in depth look into. A temporary workaround can be achieved with custom CSS, but I believe this should be fixed in the core to ensure consistent behavior across all TYPO3 installations.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.