diff --git a/packages/ui/shadcn/combobox.tsx b/packages/ui/shadcn/combobox.tsx index ad70047f..4883ea19 100644 --- a/packages/ui/shadcn/combobox.tsx +++ b/packages/ui/shadcn/combobox.tsx @@ -57,8 +57,15 @@ const ComboboxWithCreate: React.FC = ({ type="button" onClick={async () => onSubmit(inputValue)} variant="link" + disabled={inputValue.length === 0} > - {createNewMessage} "{inputValue}" + {inputValue.length > 0 ? ( + <> + {createNewMessage} "{inputValue}" + + ) : ( + <>Create a space by typing here + )}

Start by creating a space and adding content to it