casesandberg/react-color

Propogate view from toggle button on ChromePicker

Open

#584 opened on 2019年2月5日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (946 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (11,679 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド