diff options
author | bob <bcz@cs.brown.edu> | 2019-09-14 18:31:01 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-14 18:31:01 -0400 |
commit | 143d4669e764f6967d4d826b00b29912892ca637 (patch) | |
tree | 0535f1e7e8f6325f1239ebe197ac28b3db36311e | |
parent | de6332ecbc01de40f46e820f7a0301822ec3e784 (diff) |
don't think that children should inherit the onclick from their parents...
-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 89cccedff..14a9dc9d9 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -134,7 +134,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) { } @computed get onChildClickHandler() { return ScriptCast(this.Document.onChildClick); } - @computed get onClickHandler() { return this.props.onClick ? this.props.onClick : ScriptCast(this.Document.onChildClick); } + @computed get onClickHandler() { return ScriptCast(this.Document.onChildClick); } getDisplayDoc(layoutDoc: Doc, dataDoc: Doc | undefined, dxf: () => Transform, width: () => number) { let height = () => this.getDocHeight(layoutDoc); |