Skip to content

Commit 05629c0

Browse files
committed
fix: input button hasText bug
1 parent 9ba3644 commit 05629c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/src/components/MessageInput/InputButtons.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export const InputButtonsWithContext = (props: InputButtonsWithContextProps) =>
5252
const [showMoreOptions, setShowMoreOptions] = useState(true);
5353
const { attachments } = useAttachmentManagerState();
5454

55-
const shouldShowMoreOptions = !!text || !!attachments.length;
55+
const hasText = !!text;
56+
const shouldShowMoreOptions = hasText || !!attachments.length;
5657

5758
useEffect(() => {
5859
setShowMoreOptions(!shouldShowMoreOptions);

0 commit comments

Comments
 (0)