Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 1a0f733

Browse files
committed
fix(BFormRadio): update value with empty string.
1 parent 443232c commit 1a0f733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bootstrap-vue-next/src/components/BFormRadio/BFormRadio.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const localValue = computed({
122122
? JSON.stringify(parentData.modelValue.value) === JSON.stringify(props.value)
123123
: JSON.stringify(modelValue.value) === JSON.stringify(props.value),
124124
set: (newValue: string | boolean | unknown[] | Record<string, unknown> | number | null) => {
125-
const updateValue = newValue || newValue === 0 ? props.value : false
125+
const updateValue = newValue || newValue === '' || newValue === 0 ? props.value : false
126126
127127
emit('input', updateValue)
128128
modelValue.value = updateValue

0 commit comments

Comments
 (0)