Skip to content

Commit

Permalink
Disable type-to-edit without focus cell
Browse files Browse the repository at this point in the history
  • Loading branch information
gscshoyru committed Nov 2, 2017
1 parent 1f61902 commit c2da50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/cell/editableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class EditableCell extends React.Component<IEditableCellProps, IEditableC
}

private handleKeyPress = () => {
if (this.state.isEditing) {
if (this.state.isEditing || !this.props.isFocused) {
return;
}
// setting dirty value to empty string because apparently the text field will pick up the key and write it in there
Expand Down

0 comments on commit c2da50a

Please sign in to comment.