Placeholder attribute still displays seconds

Created on 2 November 2024, 5 months ago

Problem/Motivation

Here is an example of generated HTML:

<input data-drupal-selector="edit-field-date-0-value-time" type="time" step="60" title="Time (e.g. 04:31)" placeholder="hh:mm:ss" data-help="Enter the time using the format hh:mm:ss (e.g., 16:31)." id="edit-field-date-0-value-time" name="field_date[0][value][time]" value="" size="12" class="form-time form-element form-element--type-time form-element--api-date">

We can see that the placehoder attribute displays hh:mm:ss, same for the data-help attribute which also contains hh:mm:ss.

Proposed resolution

Update the code to display the right values.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mably

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