Issue with the difference between clicking on a card and clicking on the caret (ie is there an onClick functionality for the card?)

This commit is contained in:
efarooqui
2020-09-22 16:55:13 -07:00
parent 99fd2198e2
commit 2423a5a5ad
6 changed files with 32 additions and 16 deletions

View File

@@ -59,6 +59,7 @@ class CardStack extends React.Component {
return events.map((event, idx) => {
const thisRef = React.createRef()
this.refs[idx] = thisRef
return (<Card
event={event}
ref={thisRef}
@@ -71,7 +72,8 @@ class CardStack extends React.Component {
getCategoryLabel={this.props.getCategoryLabel}
onViewSource={this.props.onViewSource}
onHighlight={this.props.onHighlight}
onSelect={() => this.props.onSelect(idx)}
onSelect={this.props.onSelect}
idx={idx}
features={this.props.features}
/>)
})
@@ -79,6 +81,7 @@ class CardStack extends React.Component {
renderSelectedCards () {
const { selected } = this.props
if (selected.length > 0) {
return this.renderCards(selected)
}