-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/slider): handle null values in slider input #30621
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
fix(material/slider): handle null values in slider input #30621
Conversation
25d2edf
to
77aabff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for working on this! ❤️
i've found some falsyness checks that can be improved, please review them and correct me if i'm wrong.
4cc752d
to
4c1afd6
Compare
166eaee
to
87cbe59
Compare
The slider values behaved inconsistently when we reset the formGroup. This MR will resolve that issue by setting `value` to default value when its `null` Fixes angular#30614
87cbe59
to
0a16cf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! 🚀
…sses if mat-label is added and removed dynamically Currently, when `mat-Label` is added dynamically initially its not visible in DOM, this fix will added/remove classes for the same. Fixes angular#30621
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The slider values behaved inconsistently when we reset the formGroup. This MR will resolve that issue by setting
value
to default value when itsnull
Fixes #30614