fix: allow disabled radio buttons when created from radios.vue
This commit is contained in:
parent
189e972e0d
commit
fd8ca682e5
2 changed files with 3 additions and 2 deletions
|
@ -57,7 +57,8 @@ export default defineComponent({
|
|||
MkRadio,
|
||||
{
|
||||
key: option.key,
|
||||
value: option.props.value,
|
||||
value: option.props?.value,
|
||||
disabled: option.props?.disabled,
|
||||
modelValue: this.value,
|
||||
"onUpdate:modelValue": (value) =>
|
||||
(this.value = value),
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<FormRadios v-model="importType" class="_formBlock">
|
||||
<option value="calckey">Calckey/Misskey</option>
|
||||
<option value="mastodon">Mastodon/Akkoma/Pleroma</option>
|
||||
<option class="disabled" :disabled="true" value="twitter">
|
||||
<option :disabled="true" value="twitter">
|
||||
Twitter (soon)
|
||||
</option>
|
||||
</FormRadios>
|
||||
|
|
Loading…
Reference in a new issue