fold UI update

This commit is contained in:
thuhole
2020-07-22 01:14:10 +08:00
parent 0a5bda430c
commit a5240c6f2c

View File

@@ -662,9 +662,9 @@ class FlowItemRow extends PureComponent {
} }
} }
reveal() { // reveal() {
this.setState({ hidden: false }); // this.setState({ hidden: false });
} // }
load_replies(callback, update_count = true) { load_replies(callback, update_count = true) {
console.log('fetching reply', this.state.info.pid); console.log('fetching reply', this.state.info.pid);
@@ -829,7 +829,10 @@ class FlowItemRow extends PureComponent {
return ( return (
<div <div
className="flow-item-row flow-item-row-with-prompt" className="flow-item-row flow-item-row-with-prompt"
onClick={() => this.reveal()} onClick={(event) => {
if (!CLICKABLE_TAGS[event.target.tagName.toLowerCase()])
this.show_sidebar();
}}
> >
<div <div
className={ className={