You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (value !== stateCurrentInputValue) {
this.setState({
stateCurrentInputValue: value,
});
}
if (event.keyCode === KEYCODE.ENTER) {
this.handleChange(value);
} else if (event.keyCode === KEYCODE.ARROW_UP) {
this.handleChange(value - 1);
} else if (event.keyCode === KEYCODE.ARROW_DOWN) {
this.handleChange(value 1);
}
},
value is undefined, func handleChange never used
The text was updated successfully, but these errors were encountered:
Version
1.4.2
Environment
chrome
Reproduction link
https://vue.ant.design/components/pagination-cn/#components-pagination-demo-simple-mode
Steps to reproduce
input an avaliable value like 4,press enter key, handleChange not trigger
What is expected?
normal usage
What is actually happening?
https://github.com/vueComponent/ant-design-vue/blob/master/components/vc-pagination/Pagination.jsx
orgin code:
handleKeyUp(event) {
const inputValue = event.target.value;
const stateCurrentInputValue = this.stateCurrentInputValue;
let value;
if (value !== stateCurrentInputValue) {
this.setState({
stateCurrentInputValue: value,
});
}
if (event.keyCode === KEYCODE.ENTER) {
this.handleChange(value);
} else if (event.keyCode === KEYCODE.ARROW_UP) {
this.handleChange(value - 1);
} else if (event.keyCode === KEYCODE.ARROW_DOWN) {
this.handleChange(value 1);
}
},
value is undefined, func handleChange never used
The text was updated successfully, but these errors were encountered: