viclafouch / mui-color-input

📌 A color input designed for MUI (Material ui) V6 built with TinyColor
https://viclafouch.github.io/mui-color-input/
60 stars 20 forks source link

Allow for undefined instead of fallback color value #8

Closed korneSt closed 1 year ago

korneSt commented 1 year ago

Hi, Is there a possibility to not set any value for the input?

Currently when I set initial value as empty string, and click later on the field it sets color to the fallbackValue. However I don't want that behavior because user don't always want to set a color.

Is there a way to set the value to null or undefined instead of always setting some color?

viclafouch commented 1 year ago

Hello @korneSt !

Thanks a lot!

This issue has been fixed in https://github.com/viclafouch/mui-color-input/releases/tag/v1.0.4

Have a good holiday 😋