Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4696 from darkdh/4695
Browse files Browse the repository at this point in the history
Do not override handlers of rowAttributes when multiSelect is disabled
  • Loading branch information
bsclifton authored Oct 12, 2016
2 parents b414dc7 + f7576e9 commit 9f8f92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/components/sortableTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ class SortableTable extends ImmutableComponent {
: rowAttributes.className) +
(this.sortingDisabled ? ' no-sort' : '')
}
onClick={this.props.multiSelect ? this.onClick : undefined}
onContextMenu={this.props.multiSelect ? this.onContextMenu : undefined}>{entry}</tr>
onClick={this.props.multiSelect ? this.onClick : rowAttributes.onClick}
onContextMenu={this.props.multiSelect ? this.onContextMenu : rowAttributes.onContextMenu}>{entry}</tr>
: null
})
}
Expand Down

0 comments on commit 9f8f92e

Please sign in to comment.