[1.0.0-alpha2] Form element settings validation

Created on 13 August 2024, 3 months ago
Updated 26 August 2024, 3 months ago

Problem/Motivation

FormElement autocomplete include Icon settings.

Problem is the Form is fully generated with all enabled icon forms. Then the current pack is shown with JavaScript.
Because the form can include HTML validation like required or step for number, This can cause error on validation when an other icon pack is selected.

Steps to reproduce

Create a definition with a number default 1.5 without step, when saving an icon selector of an other icon pack, check console and see a non focusable error.: `An invalid form control with name='' is not focusable`.
The form cannot be saved.

Proposed resolution

Either Ajaxify the settings form in the FormElement, or add JavaScript to handle submit and prevent HTML validation on hidden elements.

The JavaScript task is probably easier but less efficient.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France mogtofu33

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