material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

The prop `inputRef` is marked as required in `Input`, but its value is `undefined`.

Open webbygregg opened this issue 8 years ago • 13 comments

I am receiving the error "The prop inputRef is marked as required in Input, but its value is undefined."

I am using material-ui@next and this is my code:


const DateSelector = withDatePush(({onChange, selectedDate, format = 'MMMM Do, YYYY'}) =>
  <DatePicker
    value={selectedDate}
    onChange={onChange}
    leftArrowIcon={<KeyboardArrowLeft />}
    rightArrowIcon={<KeyboardArrowRight />}
    returnMoment
    format={format}
  />);

Would appreciate any help on this.

webbygregg avatar Feb 13 '18 05:02 webbygregg

+1

jordangotbaum avatar Feb 14 '18 17:02 jordangotbaum

any update in here? @webbygregg do you have styles of this component rendered ok? I'm using the same material-ui@next and apart of your error, half of styles disappeared

maZahaca avatar Feb 19 '18 23:02 maZahaca

I haven't had an issue with styles, everything works correctly. I just get this error.

webbygregg avatar Feb 20 '18 09:02 webbygregg

The same here, any news ?

Rick83600 avatar Feb 22 '18 10:02 Rick83600

My styles are all broken as well. Running React/react dom at 16.2 and material ui@latest.

jordangotbaum avatar Feb 22 '18 15:02 jordangotbaum

@jordangotbaum the thing which helped me about styles - I used v1.0.0-beta.15.1 of this library and exact material-ui vbeta.33

maZahaca avatar Feb 22 '18 16:02 maZahaca

Update to v1.0.0-beta.15.1 and material-ui v1.0.0-beta.33 solves the issue

dmtrKovalenko avatar Feb 27 '18 16:02 dmtrKovalenko

I am actually getting this now after updating to the latest version v1.0.0-rc.3. Anyone else getting this?

Sandervanlaarhoven avatar Mar 22 '18 08:03 Sandervanlaarhoven

I am getting the same "material-ui-pickers": "1.0.0-rc.14"

aeciolevy avatar Sep 01 '18 19:09 aeciolevy

If you have a sandbox with a way to reproduce it feel free to open new issue.

dmtrKovalenko avatar Sep 01 '18 19:09 dmtrKovalenko

@dmtrKovalenko apologies @dmtrKovalenko actually "material-ui-pickers": "1.0.0-rc.14" solve this problem, but I am getting one error in the style.

image

I don't know what is cause it, there is not error on console. Do I need to pass the icon down as props in leftArrowIcon/rightArrowIcon?

aeciolevy avatar Sep 01 '18 19:09 aeciolevy

You need to install icon font or pass icons manually. Reread he last step of install guide

dmtrKovalenko avatar Sep 01 '18 19:09 dmtrKovalenko

@dmtrKovalenko Thank you and sorry about the stupid question.

aeciolevy avatar Sep 01 '18 19:09 aeciolevy