-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 Report] v-radio-group not selected initially with value type of "Object" #10571
Comments
Not a bug VRadioGroup/VRadio doesn't have value comparator, you need to use the same object: |
how did i miss it |
Or is it a bug? valueComparator was added in 78964e3 but then radios were refactored to use VItemGroup instead, which doesn't have valueComparator. |
This comment has been minimized.
This comment has been minimized.
One of the base mixins for VRadioGroup is Comparable, but if you pass |
Revisiting this, I just encountered this bug, the value comparator mixin is indeed applied on the VRadioGroup but never used, effectively making the whole radio group with object as values case invalid #1316 As for the doc part it also inherits the "multiple" prop and the doc picks it up, but it doesn't make sense to have multiple values for VRadioGroup, I don't know if anything can be done there |
Environment
Vuetify Version: 2.2.12
Vue Version: 2.6.11
Browsers: Chrome 80.0.3987.87
OS: Mac OS 10.15.3
Steps to reproduce
Just open Codepen link and see the radio group
Expected Behavior
The radio button "two" is initially selected
Actual Behavior
No radio button is selected initially
Reproduction Link
https://codepen.io/ohauger/pen/gOpPpje
Other comments
I also tried to set the "value-comparator" with my own compare function BUT the function never get's called
The text was updated successfully, but these errors were encountered: