React-md: [DatePicker/TimePicker] - InlineIndicator expected boolean

Created on 18 Aug 2017  路  1Comment  路  Source: mlaursen/react-md

Description

When sending in an object in the inlineIndicator prop for component TimepickerContainer I get an error. The compiled code works as expected though but the error persists.

The Error

Warning: Failed prop type: Invalid prop inlineIndicator of type object supplied to TimePickerContainer, expected boolean.
in TimePickerContainer (created by XXXX)

Link to a gist or code sample where the issue can be reproduced

<TimePicker
        id="id"
        label="Time"
        value={date}
        onChange={onTimeChange}
        icon={null}
        inlineIndicator={indicatorElems}
        error={hasWarning}
      />

Where indicatorElems is a <div>{Components}</div>

Version

  • React - 15.4.2
  • React-MD - 1.0.18
bug

Most helpful comment

Looks like this was a copy/paste fail. I'll update both this and the date picker since it has the same problem.

>All comments

Looks like this was a copy/paste fail. I'll update both this and the date picker since it has the same problem.

Was this page helpful?
0 / 5 - 0 ratings