From a5240c6f2cf1f1e945830dce064355ddac27f9b6 Mon Sep 17 00:00:00 2001 From: thuhole Date: Wed, 22 Jul 2020 01:14:10 +0800 Subject: [PATCH] fold UI update --- src/Flows.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Flows.js b/src/Flows.js index 8813b3f..3bd4ceb 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -662,9 +662,9 @@ class FlowItemRow extends PureComponent { } } - reveal() { - this.setState({ hidden: false }); - } + // reveal() { + // this.setState({ hidden: false }); + // } load_replies(callback, update_count = true) { console.log('fetching reply', this.state.info.pid); @@ -829,7 +829,10 @@ class FlowItemRow extends PureComponent { return (
this.reveal()} + onClick={(event) => { + if (!CLICKABLE_TAGS[event.target.tagName.toLowerCase()]) + this.show_sidebar(); + }} >