Material-ui-pickers: React does not recognize the `inputProps` prop on a DOM element.

Created on 16 Dec 2017  路  11Comments  路  Source: mui-org/material-ui-pickers

Hi! Do you have any ideas why this warning appears?

"react": "^16.2.0",

screen shot 2017-12-16 at 10 44 40 am

bug 馃悰 incomplete

Most helpful comment

@SKTheo it's already fixed in beta.14

All 11 comments

Please provide the code, how you are using pickers, thank you.

```
"material-ui": "^1.0.0-beta.23",
"material-ui-icons": "^1.0.0-beta.17",
"material-ui-pickers": "^1.0.0-beta.8"

style={{ paddingTop: 10 }}
value={store.reminder ? store.reminder.date : new Date()}
onChange={(date) => { this.handleSetReminder(date) }}
ampm={false}
minDate={new Date()}
maxDate={moment().add(2, 'week')}
returnMoment={false}
/>

Fixed in #109

@alitaheri , the issue is still alive now with the "invalidDateMessage" property.

@voroninpaul already fixed on current develop #138, next release will include that

i get the same error....

image

format={"DD-MM-YYYY"}
value={selectedDate}
leftArrowIcon={

}
rightArrowIcon={

}
onChange={this.handleChange}
{...this.props}
/>

package.json:

"material-ui": "1.0.0-beta.30",
"material-ui-pickers": "^1.0.0-beta.13.1",
"moment": "^2.19.3",
"react": "^16.0.0",

@unutoiul Please note that all props passed down to TextField component So you should pass inputRef directly to the picker, not inside InputProps

I'm just initializing the date-picker library...where /what is wrong in my code?

I'm getting the same error:
Warning: React does not recognize the 'inputRef' prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase 'inputref' instead. If you accidentally passed it from a parent component, remove it from the DOM element.

I'm using DateTimePicker in a Dialog

My code:

<DateTimePicker
  value={this.state.tempStart}
  onChange={this.handleDateTimeStartChange}
  {...datetimepickerOptions}
/>
const datetimepickerOptions = {
  leftArrowIcon: <KeyboardArrowLeft />,
  rightArrowIcon: <KeyboardArrowRight />,
  dateRangeIcon: <DateRangeIcon />,
  timeIcon: <AccessTimeIcon />,
  keyboardIcon: <DateRangeIcon />,
  format: 'YYYY/MM/DD HH:mm',
  autoOk: true,
  okLabel: 'Ok',
  cancelLabel: 'Cancel',
  keyboard: true,
  invalidDateMessage: 'Wrong Date'
}

| Tech | Version |
|--------------|---------|
| Material-UI | 1.0.0-beta.31 |
| Material-UI-pickers | 1.0.0-beta.13.1 |
| React | 16.2.0 |
| browser | Chrome 64.0.3282.119 (Official Build) (64-bit) |

Please help us solve this issue

@SKTheo it's already fixed in beta.14

Was this page helpful?
0 / 5 - 0 ratings

Related issues

callmeberzerker picture callmeberzerker  路  3Comments

killjoy2013 picture killjoy2013  路  3Comments

benneq picture benneq  路  3Comments

StevenRasmussen picture StevenRasmussen  路  3Comments

idrm picture idrm  路  3Comments