casesandberg/react-color

Propogate view from toggle button on ChromePicker

Aberta

#584 aberto em 5 de fev. de 2019

 (2 comentários) (0 reação) (0 responsável)JavaScript (921 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (12.322 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador