The date input field has been added in #2821483: Additional field types for D8, but it does not work because placeholders are not supported for date fields by the browsers/html5, you see always a date mask like dd/mm/jjjj.

Also the library of Mathias Bynens is not proposing placeholders for date fields: https://mathiasbynens.github.io/jquery-placeholder/

The HTML Standard says in 4.10.5.1.7 Date state (type=date)

when an input element's type attribute is in the Date state, the rules in this section apply. The following content attributes must not be specified and do not apply to the element: accept, ... , placeholder, ..., and width.

There are some hacky jquery workarounds, so if date should be allowed in this module one of these should then be implemented.

CommentFileSizeAuthor
#5 form_placeholder-3017417-5.patch719 bytesamateichuk

Comments

hansrossel created an issue. See original summary.

romixua’s picture

Assigned: Unassigned » romixua
Issue tags: +epam-contrib-2019.03
linichalexey’s picture

Issue tags: -epam-contrib-2019.03
romixua’s picture

Assigned: romixua » Unassigned
amateichuk’s picture

Status: Active » Needs review
StatusFileSize
new719 bytes

Removed date field types

alex_optim’s picture

Looks good.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed fd28d50 on 8.x-1.x authored by Tolyan4ik
    Issue #3017417 by Tolyan4ik, hansrossel, linichalexey, alex_optim:...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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