diff options
| author | bob <bcz@cs.brown.edu> | 2019-09-16 16:09:23 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-09-16 16:09:23 -0400 |
| commit | 2f1741cf291c69ce55b87116bd24edd2f940141d (patch) | |
| tree | a4776fa986fca8cc35f61097b2b326bd5d39a0ec /src/client/views/collections/CollectionTreeView.tsx | |
| parent | c851129c58d142c67f034924e0e7e04f1c3e5017 (diff) | |
fixed double-clicking to open docs.
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 6217ef859..40bea2f9d 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -347,7 +347,7 @@ class TreeView extends React.Component<TreeViewProps> { @computed get renderBullet() { - return <div className="bullet" title="view inline" onClick={action(() => this.treeViewOpen = !this.treeViewOpen)} style={{ color: StrCast(this.props.document.color, "black"), opacity: 0.4 }}> + return <div className="bullet" title="view inline" onClick={action((e: React.MouseEvent) => { this.treeViewOpen = !this.treeViewOpen; e.stopPropagation(); })} style={{ color: StrCast(this.props.document.color, "black"), opacity: 0.4 }}> {<FontAwesomeIcon icon={!this.treeViewOpen ? (this.childDocs ? "caret-square-right" : "caret-right") : (this.childDocs ? "caret-square-down" : "caret-down")} />} </div>; } |
