Aggregate does not work in chrome state

I use the razor view page and in the date time field. I want to display the placeholder, showing it in Firefox, but not showing it in chrome - mm/dd/yyyy.

Here is my code -

 @Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class = "form-control form-inline", @placeholder = "Date must be today or past date" } })

Screenshot of firefox

Screenshothot of chrome

How can I solve this problem.

+4
source share
1 answer

The date type does not support the placeholder attribute. In addition, the WebKit implementation is talking about a fix.

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary

0
source

Source: https://habr.com/ru/post/1663205/


All Articles