Picker: esc => close and stop

pull/5289/head
patriciussanctus 2017-05-29 16:01:00 +03:00 committed by 杨奕
parent 66cad95a4b
commit 433a66cc40
1 changed files with 3 additions and 2 deletions

View File

@ -409,9 +409,10 @@ export default {
handleKeydown(event) {
const keyCode = event.keyCode;
// tab
if (keyCode === 9) {
// TAB or ESC
if (keyCode === 9 || keyCode === 27) {
this.pickerVisible = false;
event.stopPropagation();
}
},