AxaFrance / react-toolkit

Flexible components html + css + react using BEM convention. Maybe, you can call it "Design System" !
https://axafrance.github.io/design-system/
MIT License
97 stars 63 forks source link

Input Select does not work #968

Closed rpetigny closed 1 year ago

rpetigny commented 2 years ago

Issue and Steps to Reproduce

This codesandbox illustrates the problem: https://codesandbox.io/s/gifted-elbakyan-dkd87g?file=/src/App.js Error in console at startup: « Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly. » And onChange handler never called

Versions

2.0.0-alpha.8

Screenshots

Expected

onChange correctly working

Actual

Additional Details

Switch back to alpha.5 and the sample works

bernard-arnaud commented 2 years ago

classModifier is also not properly passed down.

Here's a sandbox to showcase both issues : https://codesandbox.io/s/condescending-ptolemy-m32ol1

samuel-gomez commented 1 year ago

Fixed on v2.0.0 : https://codesandbox.io/s/select-n3o3b5