Material-ui: [DatePicker] `textFieldStyle` prop doesn't work

Created on 21 Mar 2016  路  4Comments  路  Source: mui-org/material-ui

2016-03-21 5 37 33

<DatePicker
  hintText="From"
  textFieldStyle={{
     color: '#ffffff',
  }}
/>

In right side, DatePicker is filled with date.
I provide white color inline-css to DatePicker through textFieldStyle prop but TextField in datepicker never changed.

Versions

  • Material-UI: 0.15 alpha 2
  • React: 0.14.7
  • Browser: Chrome latest
docs

Most helpful comment

You've been struck by the curse of the undocumented child component property!

Try: inputStyle={{color: 'white'}}

Related to #3172.

All 4 comments

You've been struck by the curse of the undocumented child component property!

Try: inputStyle={{color: 'white'}}

Related to #3172.

@mbrookes Perfect!

Same applied for the AutoComplete.. hopefully documentation gets updated

still not updated

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reflog picture reflog  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments

finaiized picture finaiized  路  3Comments

FranBran picture FranBran  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments