This PR addresses an issue where the penColor prop might be passed as undefined during parent component re-renders. This causes the underlying signature_pad library to set the fillColor as undefined, preventing any further drawing on the canvas. To resolve this, we are adding penColor as a default prop with a value of 'black'.
Changes
Added penColor to defaultProps with a default value of 'black'.
Summary
This PR addresses an issue where the penColor prop might be passed as undefined during parent component re-renders. This causes the underlying signature_pad library to set the fillColor as undefined, preventing any further drawing on the canvas. To resolve this, we are adding penColor as a default prop with a value of 'black'.
Changes
Added penColor to defaultProps with a default value of 'black'.
How to reproduce the issue
Clear
text and try to draw some again and it won't work.penColor
prop, you will not encounter the issue.