Skip to content

Commit

Permalink
fix(Combobox): revert props.value check (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac authored Nov 27, 2024
1 parent 07d29de commit 5c30c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Combobox/ComboboxItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const groupContext = injectComboboxGroupContext(null)
const { primitiveElement, currentElement } = usePrimitiveElement()
if (!props.value) {
if (props.value === '') {
throw new Error(
'A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.',
)
Expand Down

0 comments on commit 5c30c32

Please sign in to comment.