react-code-input
react-code-input copied to clipboard
Cannot use conditional disabled if inputStyle is used for styling
For my use case, I wanted to have the component become disabled when the user has reached the maximum number of fields (in handlePinInputChange when length === 6, pinComplete in state is updated from false to true).
If this is used in conjunction with inputStyle, an error is thrown in the client:

The code works fine when inputStyle is not used. I believe the solution would be to allow inputStyle to have styles added on (incorporating a spread operator to adding the styles).