Why does Checkbox's update:modelValue
has the type boolean | "indeterminate"
?
#1875
tuananhlai
started this conversation in
General
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, I just want to thank the Reka UI team for creating such a high quality component library for Vue. The library you guys provided has been very helpful to me as a developer.
Getting back to topic, I noticed that the type for Checkbox's
update:modelValue
event parameter has the typeboolean | "indeterminate"
, butindeterminate
doesn't seem to be emitted anywhere in the component code. This is quite annoying as an user because you can't assignupdate:modelValue
event parameter to aboolean
variable without type casting.I'd be much appreciated if you can help me understand the reasoning behind this design decision. Thank you very much in advanced.
Beta Was this translation helpful? Give feedback.
All reactions