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 3, 2017
1 parent cc47a5b commit 7ee50b7
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 7ee50b7

Please sign in to comment.