We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba3644 commit 05629c0Copy full SHA for 05629c0
package/src/components/MessageInput/InputButtons.tsx
@@ -52,7 +52,8 @@ export const InputButtonsWithContext = (props: InputButtonsWithContextProps) =>
52
const [showMoreOptions, setShowMoreOptions] = useState(true);
53
const { attachments } = useAttachmentManagerState();
54
55
- const shouldShowMoreOptions = !!text || !!attachments.length;
+ const hasText = !!text;
56
+ const shouldShowMoreOptions = hasText || !!attachments.length;
57
58
useEffect(() => {
59
setShowMoreOptions(!shouldShowMoreOptions);
0 commit comments