2

I'm trying to add placeholder to textfield with type="date". In normal case when type="number" || type="text" placeholder works perfect, but using type="date" It's not working anymore. Have You ever had this problem and know how to resolve it?

  • 2
    Nothing to do with react or material-ui directly, but in HTML5 a input of type date, does simply not have the placeholder attribute. https://www.w3.org/TR/html50/forms.html#input-type-attr-summary You can simulate it though: https://stackoverflow.com/questions/18146350/how-do-i-simulate-placeholder-functionality-on-input-date-field – ippi May 25 '18 at 07:02
  • Possible duplicate of [How do I simulate placeholder functionality on input date field?](https://stackoverflow.com/questions/18146350/how-do-i-simulate-placeholder-functionality-on-input-date-field) – Mike Donkers May 25 '18 at 09:09

0 Answers0