studiobakers / react-ui-toolkit

Bakers Studio's React-based UI Toolkit
MIT License
15 stars 2 forks source link

Make `onChange` optional for disabled input elements #151

Closed jamcry closed 9 months ago

jamcry commented 3 years ago

Currently, onChange should still be passed even if the input element is disabled. We should give dummy functions to suppress this for read-only fields. Maybe we can make it optional if isDisabled is true