Skip to content

Commit

Permalink
Fix selection list cancel edit
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Oct 16, 2017
1 parent b27b06a commit cf49919
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/selection/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ class SelectionList extends SelectionIterator {
return this.props.edit === selection
}

handleEditCancel = (...args) => {
this.props.onEditCancel(...args)
this.container.focus()
}

render() {
return this.connect(
<ul className={cx(this.classes)}>
Expand All @@ -43,7 +38,7 @@ class SelectionList extends SelectionIterator {
onChange={this.props.onChange}
onContextMenu={this.props.onContextMenu}
onEdit={this.props.onEdit}
onEditCancel={this.handleEditCancel}/>)}
onEditCancel={this.props.onEditCancel}/>)}
</ul>
)
}
Expand Down

0 comments on commit cf49919

Please sign in to comment.