arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 870 forks source link

*Feature request* Propagation of name and id properties to the input form #773

Closed AtzepengPK closed 3 years ago

AtzepengPK commented 3 years ago

As per titile.

I have a situation where i select all the input types via querySelector and I would like something like this to work.

  <Datetime
       name="someName"
       id="someId"
  />

If u dont have time to implement this just let me know and i'll make a pull request.

Also, if this is somehow implemented already please let me know.

Thanks!

Edit: A more general approach would be to have a property like inputProps : Object which has the properies to propagate

AtzepengPK commented 3 years ago

inputProps is actually one of the props.....