casesandberg/react-color
View on GitHubPropogate view from toggle button on ChromePicker
Open
#584 opened on Feb 5, 2019
enhancementhelp wanted
Description
The current view state of the ChromeFields input in ChromePicker is not externally accessible and makes it difficult to tie in with other components.
I suggest adding an onToggleView callback to pass the new "view" state as a parameter back up to its container.
e.g:
if(this.props.onToggleView){ this.props.onToggleView('hex'); }