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

Commit

Permalink
Remove delete shortcut for clearing filter #742
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed May 17, 2017
1 parent 4099de0 commit 7aa592c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/app/OverlayField.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OverlayField extends Component {
}

handleKeyDown = (e) => {
const {handleSubmit, closeOverlay, clearData} = this.props;
const {handleSubmit, closeOverlay} = this.props;
switch(e.key) {
case 'Enter':
document.activeElement.blur();
Expand All @@ -21,9 +21,6 @@ class OverlayField extends Component {
case 'Escape':
closeOverlay();
break;
case 'Delete':
clearData && clearData();
break;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/components/filters/FiltersItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class FiltersItem extends Component {
layout={filter}
handlePatch={this.setValue}
handleChange={this.setValue}
clearData={isActive && this.handleClear}
closeOverlay={outsideClick}
handleSubmit={this.handleApply}
{...{windowType, onShow, onHide, viewId}}
Expand Down

0 comments on commit 7aa592c

Please sign in to comment.