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
Make slider value non-nullable #22444
Comments
I think that a null can be assigned here if the |
That's interesting, it didn't occur to me that the default for ETA: might have been thinking of
(It's always a string, never |
We've handled similar cases in other components by setting it to zero when |
value
be null
?Makes the value of the slider a `number`, rather than `number | null` in order to make it easier to use. Fixes angular#22444.
Makes the value of the slider a `number`, rather than `number | null` in order to make it easier to use. Fixes angular#22444.
Makes the value of the slider a `number`, rather than `number | null` in order to make it easier to use. Fixes #22444.
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. |
Documentation Feedback
The linked docs give the type of
value
asnumber | null
but the overview never describes a state when the value can actually benull
. They say "The initial value is set to the minimum value unless otherwise specified".If the value actually can be
null
, an example of this should be provided. If the value is nevernull
(which seems to make more sense?) then the API should be updated so thatvalue
is simplynumber
.Affected documentation page: https://material.angular.io/components/slider/api
The text was updated successfully, but these errors were encountered: