Placeholder doesn't show

Created on 10 November 2020, about 4 years ago
Updated 13 March 2024, 9 months ago

When using a placeholder it's not being displayed and this is due to the type of the input being date.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇺🇸United States smustgrave

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.

  • 🇺🇸United States kthull Fort Wayne, Indiana

    Patch in #3 🐛 Placeholder doesn't show Needs work no longer applies to either the 1.x-dev version or the D10-ready 1.3 version

  • Status changed to Needs work over 1 year ago
  • 🇹🇷Turkey orkut murat yılmaz Istanbul

    Patch doesn't work either.

  • Status changed to Fixed 10 months ago
  • 🇷🇪Réunion morgannc La Réunion

    The logic is wrong. Placeholder attributes are not allowed on date fields. Today, the latest version of the module allows placeholders to be displayed on inputs, but this goes against current HTML rules :

    https://html.spec.whatwg.org/multipage/input.html#date-state-(type%3Ddate)

    The following content attributes must not be specified and do not apply to the element: accept, alt, checked, dirname, formaction, formenctype, formmethod, formnovalidate, formtarget, height, maxlength, minlength, multiple, pattern, placeholder, popovertarget, popovertargetaction, size, src, and width.

    If you need to display pre-defined text or text on top of your element, turn to other solutions such as CSS, or even consider a text field (note that this may have repercussions in terms of ux/ui and values returned).

  • 🇷🇪Réunion morgannc La Réunion

    I create other issue to adding placeholder support with text field modifier : https://www.drupal.org/project/date_popup/issues/3424371 Adding placeholder support Needs review
    But this is on the news version of module 2.x series.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024