[BUGFIX] Hide form validators label when no one is available
With the deprecation removal of regular expressions based EXT:form validators in #101070, the set of available validators for the form element type URL became empty. (See EXT:form/Configuration/Yaml/FormElements/Url.yaml) Instead of only removing the select element from the DOM, the entire form-group is now removed, in order to also hide the corresponding <label> tag, as such a stray label tag isn't helpful for an enduser and is therefore actually even invalid HTML (as the reference to an input element is missing). Resolves: #101749 Related: #101070 Releases: main, 12.4, 11.5 Change-Id: Ib0d34e94e2c3ba109133dac64374f04f7c91329b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80692 Tested-by:Benjamin Kott <benjamin.kott@outlook.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benjamin Kott <benjamin.kott@outlook.com> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/form/backend/form-editor/inspector-component.ts 15 additions, 2 deletions...ypeScript/form/backend/form-editor/inspector-component.ts
- typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/FinishersEditor.html 2 additions, 1 deletion...ackend/Partials/FormEditor/Inspector/FinishersEditor.html
- typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/ValidatorsEditor.html 2 additions, 1 deletion...ckend/Partials/FormEditor/Inspector/ValidatorsEditor.html
- typo3/sysext/form/Resources/Public/JavaScript/backend/form-editor/inspector-component.js 1 addition, 1 deletion...lic/JavaScript/backend/form-editor/inspector-component.js
Loading
Please register or sign in to comment