Validation for time range start/end fields

Created on 13 October 2020, over 4 years ago
Updated 18 September 2023, over 1 year ago

Problem/Motivation

When using a time range field widget, the user can fill in a start hour that is greater than the end hour.

Steps to reproduce

Fill in 8:00 AM as start hour, and 7:00 AM as end hour in a time range field.
Submit the form, no error is displayed.

Proposed resolution

Adding a validation when using a time range field, forcing the user to set a start hour that is lower than the end hour.

Remaining tasks

None

User interface changes

An error message appears when the user tries to set an invalid time range.

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇷France Renrhaf 📍 Strasbourg 🐦🦜

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024