casesandberg/react-color

Propogate view from toggle button on ChromePicker

Open

#584 ouverte le 5 févr. 2019

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (946 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (11 679 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur