-
Notifications
You must be signed in to change notification settings - Fork 4k
Slider disabled state not honoured without change #7943
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
Labels
Comments
看起来是首次disable=true 是无效的,后面改变disable的值便恢复正常了 |
#7786 的副作用,slider.component.ts#L237 要用 nzDisabled |
OriginRing
added a commit
to OriginRing/ng-zorro-antd
that referenced
this issue
May 15, 2023
3 tasks
Nicoss54
pushed a commit
that referenced
this issue
May 15, 2023
MunMunMiao
pushed a commit
to MunMunMiao/ng-zorro-antd
that referenced
this issue
May 31, 2023
nz-sdiler init invalid, it just work when component did mount |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
https://stackblitz.com/edit/angular-axq7am
Steps to reproduce
nzDisabled
attribute on the slider component be set to true when the component is initialized.What is expected?
Initial state of
true
fornzDisabled
should correctly disable the field.What is actually happening?
If the value of the
nzDisabled
attribute is initially set totrue
the slider looks like it is disabled but the handles are draggable which updates the field value.When the state of
nzDisabled
is changed (Either by defaulting tofalse
and changing totrue
, or by being toggled twice fromtrue
tofalse
totrue
) then the disabled state is applied correctly and the handles are not draggable.The same is true of the range-slider too.
The text was updated successfully, but these errors were encountered: