-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[Bug Report] pagination pagesize binding in jumper #6809
Comments
Translation of this issue: Element UI version1.4.3 OS/Browsers versionMacOS / Chrome Vue version2.4.2 Reproduction Linkhttps://jsfiddle.net/pj71jkyw/532/ Steps to reproduce
What is Expected?
What is actually happening?
|
哪里有「前进」? |
next |
@StevenYuysy 删除jumper中的数字后,当前页跳到第1页并不是点击next直接导致的,而是jumper失焦后其值此时为空字符串,应用值到internalCurrentPage前会校验设置的页码,部分源码如下,会被设置为1: getValidCurrentPage(value) {
value = parseInt(value, 10);
// ...
if (resetValue === undefined && isNaN(value)) {
resetValue = 1; // here
} else if (resetValue === 0) {
resetValue = 1;
}
return resetValue === undefined ? value : resetValue;
}
} |
@huguangju |
@StevenYuysy |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Element UI version
1.4.3
OS/Browsers version
MacOS / Chrome
Vue version
2.4.2
Reproduction Link
https://jsfiddle.net/pj71jkyw/532/
Steps to reproduce
jumper
里面的 5What is Expected?
What is actually happening?
The text was updated successfully, but these errors were encountered: