We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9867c2a + 5628e89 commit fbce730Copy full SHA for fbce730
src/components/RadioButton/RadioButton.vue
@@ -5,7 +5,7 @@ Choice(
5
:id="`${id}`",
6
:label-class-name="styles.ChoiceLabel",
7
:fill="fill",
8
- :tone="model === normalizedValue ? tone : undefined",
+ :tone="(checked ?? model === normalizedValue) ? tone : undefined",
9
v-bind="extraChoiceProps",
10
)
11
template(v-if="hasSlot(slots.label) || label", #label)
@@ -22,7 +22,7 @@ Choice(
22
:name="`${name}`",
23
:value="value",
24
type="radio",
25
- :checked="checked || model === normalizedValue",
+ :checked="checked ?? model === normalizedValue",
26
:disabled="disabled",
27
:class="inputClassName",
28
:aria-describedby="ariaDescribedBy",
0 commit comments