Empty values generate illegal choice errors

Created on 7 July 2023, almost 2 years ago
Updated 18 July 2023, almost 2 years ago

Problem/Motivation

When you set a datalist element as required and submit a form using the element without interacting with it, you should get a "required field" error and not an illegal choice error.

Steps to reproduce

Create a form with a datalist element.
Make the field required.
Open the form and submit the form.

Proposed resolution

Make sure the empty option is known at the time of validation (same principle as core validates select elements).

Remaining tasks

Patch, Test.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium kriboogh

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

Comments & Activities

Production build 0.71.5 2024