-
Notifications
You must be signed in to change notification settings - Fork 4k
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(input-number) 当按 tab
切换时无法校验,以及
#203
Labels
Comments
cipchk
changed the title
[input-number] 当按
bug(input-number) 当按 Aug 31, 2017
tab
切换时无法校验,以及tab
切换时无法校验,以及
+1 |
I think export class NzInputNumberComponent implements ControlValueAccessor {
// ...
set nzValue(value: number) {
if (this._value === value) {
return;
}
if (value > this.nzMax) {
this._value = this.nzMax;
this.onChange(this.nzMax);
} else if (value < this.nzMin) {
this._value = this.nzMin;
this.onChange(this.nzMin);
} else {
this._value = value;
this._checkDisabled(); // disabled should be called after the setter function instead of here
}
}
} |
confirm, thanks for feedback. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a...
Current behavior
会有两个问题:
demoValue=1
时 “减” 的状态不正确。1000
按下Tab
键时依然是1000
晚安!
The text was updated successfully, but these errors were encountered: