casesandberg/react-color

Propogate view from toggle button on ChromePicker

Open

#584 aperta il 5 feb 2019

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (946 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (11.679 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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'); }

Guida contributor