fix: pagination keyup enter not work #1316

pull/1322/head
tanjinzhou 2019-10-21 17:36:06 +08:00
parent b5cd32aa1a
commit 8be7ec96a2
1 changed files with 2 additions and 1 deletions

View File

@ -49,10 +49,11 @@ export default {
return; return;
} }
if (e.keyCode === KEYCODE.ENTER || e.type === 'click') { if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {
// https://github.com/vueComponent/ant-design-vue/issues/1316
this.quickGo(this.getValidValue());
this.setState({ this.setState({
goInputText: '', goInputText: '',
}); });
this.quickGo(this.getValidValue());
} }
}, },
}, },