casesandberg/react-color

Propogate view from toggle button on ChromePicker

Open

#584 geöffnet am 5. Feb. 2019

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (11.679 Stars) (946 Forks)batch import
enhancementhelp wanted

Beschreibung

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

Contributor Guide