diff options
author | bobzel <zzzman@gmail.com> | 2023-04-24 15:22:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-24 15:22:41 -0400 |
commit | e4c7926a5280222156a38d46a2aa87d442712cf1 (patch) | |
tree | 8f27c5da61e62ed23aa6385156be748dca901380 | |
parent | c83c44313b0d3e6168408fadd0c01d99057c325a (diff) |
fixed interactions with sidebar stacking views.
-rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 020fe1cb4..eedf639aa 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -324,7 +324,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection renderDepth={this.props.renderDepth + 1} PanelWidth={width} PanelHeight={height} - pointerEvents={this.props.DocumentView?.().props.onClick ? returnNone : undefined} // if the stack has an onClick, then we don't want the contents to be interactive (see CollectionPileView) + pointerEvents={this.props.DocumentView?.().props.onClick?.() ? returnNone : undefined} // if the stack has an onClick, then we don't want the contents to be interactive (see CollectionPileView) styleProvider={this.styleProvider} docViewPath={this.props.docViewPath} fitWidth={this.props.childFitWidth} |