diff --git a/js/components/ascribe_table/table_item_selectable.js b/js/components/ascribe_table/table_item_selectable.js index 8e48b816..974c5453 100644 --- a/js/components/ascribe_table/table_item_selectable.js +++ b/js/components/ascribe_table/table_item_selectable.js @@ -17,17 +17,20 @@ let TableItemSelectable = React.createClass({ columnContent: React.PropTypes.object }, + selectItem() { + this.props.selectItem(this.props.parentId, this.props.columnContent.edition_number); + }, + render() { let tableItemClasses = classNames({ 'ascribe-table-item-selected': this.props.columnContent.selected }); - let boundSelectItem = this.props.selectItem.bind(this, this.props.parentId, this.props.columnContent.edition_number); return ( + onClick={this.selectItem}> ); }