Skip to content

Commit

Permalink
Fix creatable showing for empty string and false flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavabhuthi committed Oct 15, 2024
1 parent 0ce6f1e commit efdec0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opub-ui/src/components/Combobox/Combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const Combobox = React.forwardRef(
{ '--popover-padding': 'var(--space-1)' } as React.CSSProperties
}
>
{matches.length === 0 && (
{props.creatable === true && searchValue.trim().length > 0 && (
<>
<Item
item={{
Expand Down

0 comments on commit efdec0b

Please sign in to comment.