diff options
| author | bob <bcz@cs.brown.edu> | 2019-02-19 11:33:26 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-02-19 11:33:26 -0500 |
| commit | 39c6ba3292467979e310f3b577041c2f5e38273f (patch) | |
| tree | a6a4d290dff330855e9626e37fbd43a9ad592137 /src/client/views/collections/CollectionViewBase.tsx | |
| parent | 49e946d57c5dc0f21a6d6a98436429a353c96907 (diff) | |
fixed selection problem
Diffstat (limited to 'src/client/views/collections/CollectionViewBase.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionViewBase.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionViewBase.tsx b/src/client/views/collections/CollectionViewBase.tsx index 5dd10722d..1e20da8d2 100644 --- a/src/client/views/collections/CollectionViewBase.tsx +++ b/src/client/views/collections/CollectionViewBase.tsx @@ -37,7 +37,7 @@ export class CollectionViewBase extends React.Component<CollectionViewProps> { } @computed public get active(): boolean { - var isSelected = (this.props.ContainingDocumentView instanceof CollectionFreeFormDocumentView && SelectionManager.IsSelected(this.props.ContainingDocumentView)); + var isSelected = (this.props.ContainingDocumentView && SelectionManager.IsSelected(this.props.ContainingDocumentView)); var childSelected = SelectionManager.SelectedDocuments().some(view => view.props.ContainingCollectionView == this); var topMost = this.props.isTopMost; return isSelected || childSelected || topMost; |
