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

Commit

Permalink
Merge pull request #954 from metasfresh/dev-938
Browse files Browse the repository at this point in the history
fix tab jump to qty field #938
  • Loading branch information
Dunkat authored Jun 28, 2017
2 parents 45f96ca + 959f0d6 commit 8d43ddf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/widget/List/RawList.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class RawList extends Component {

handleKeyDown = (e) => {
const {selected, isOpen} = this.state;
const {onSelect} = this.props;
const {onSelect, list} = this.props;

if(e.keyCode > 47 && e.keyCode < 123){
this.navigateToAlphanumeric(e.key);
Expand All @@ -296,12 +296,14 @@ class RawList extends Component {
} else {
onSelect(null);
}

break;
case 'Escape':
e.preventDefault();
this.handleBlur();
break;
case 'Tab':
list.length === 0 && onSelect(null);
break;
}
}
}
Expand Down

0 comments on commit 8d43ddf

Please sign in to comment.