Skip to content

pagination simple handleChange never trigger #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
roland-luo opened this issue Oct 24, 2019 · 1 comment
Closed
1 task

pagination simple handleChange never trigger #1333

roland-luo opened this issue Oct 24, 2019 · 1 comment

Comments

@roland-luo
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

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

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants