fix ios pressure helper and click handler

This commit is contained in:
xmcp
2019-05-24 19:03:47 +08:00
parent 36c4298d26
commit f72ab83ca4
6 changed files with 20 additions and 14 deletions

View File

@@ -173,6 +173,17 @@ class FlowSidebar extends PureComponent {
this.reply_ref=React.createRef();
}
componentWillReceiveProps(nextProps) {
this.setState({
attention: nextProps.attention,
info: nextProps.info,
replies: nextProps.replies,
loading_status: 'done',
});
this.color_picker=nextProps.color_picker;
this.syncState=nextProps.sync_state||(()=>{});
}
set_variant(cid,variant) {
this.setState((prev)=>{
if(cid)