jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 395 forks source link

Can not set DatePicker input id via inputProps #1153

Open DavidCasillasRivero opened 8 months ago

DavidCasillasRivero commented 8 months ago

Setting the DatePicker inputProps.id property is not working.

With this code the final id of the input element is rw_1_input.

<DatePicker inputProps={{ id: 'inputId }} .../>

With this code the final id of the input element is mainId_input.

<DatePicker id="mainId" inputProps={{ id: 'inputId' }} .../>

These closed issues reports the same and seems to be closed and fixed in 2021.

https://github.com/jquense/react-widgets/issues/1023 https://github.com/jquense/react-widgets/pull/1024

Using "react-widgets": "^5.8.3"