A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(ForumPostComposer): enter creates new lines (#3542)
Jiralitef9ca632365b4
diff --git a/fluxer_app/src/features/channel/components/LexicalChannelTextareaContent.tsx b/fluxer_app/src/features/channel/components/LexicalChannelTextareaContent.tsxindex 99dc0557d..f926eada7 100644--- a/fluxer_app/src/features/channel/components/LexicalChannelTextareaContent.tsx+++ b/fluxer_app/src/features/channel/components/LexicalChannelTextareaContent.tsx@@ -164,6 +164,7 @@ export const LexicalChannelTextareaContent = observer(enableReply = true,enableEditLast = true,enableSlashCommands = true,+ submitOnEnter = true,draftChannelId,placeholder,bare = false,@@ -181,6 +182,7 @@ export const LexicalChannelTextareaContent = observer(enableReply?: boolean;enableEditLast?: boolean;enableSlashCommands?: boolean;+ submitOnEnter?: boolean;draftChannelId?: string;placeholder?: string;bare?: boolean;@@ -1396,7 +1398,7 @@ export const LexicalChannelTextareaContent = observer(specialMentionsAllowed={specialMentionsAllowed}channelId={channel.id}guildId={channel.guildId}- submitOnEnter={!mobileLayout.enabled}+ submitOnEnter={submitOnEnter && !mobileLayout.enabled}maxWireLength={maxMessageLength}silentMessagePrefix={!isEditingMessageOnMobile}focusRingTarget={containerRef}diff --git a/fluxer_app/src/features/forum/components/ForumPostComposer.tsx b/fluxer_app/src/features/forum/components/ForumPostComposer.tsxindex 387137f87..a8b6f233d 100644--- a/fluxer_app/src/features/forum/components/ForumPostComposer.tsx+++ b/fluxer_app/src/features/forum/components/ForumPostComposer.tsx@@ -170,6 +170,7 @@ export const ForumPostComposer = observer(({forum, initialTitle, onClose}: ForumenableReply={false}enableEditLast={false}enableSlashCommands={false}+ submitOnEnter={false}draftChannelId={draftKey}placeholder={i18n._(media ? D.POST_MEDIA_PLACEHOLDER_DESCRIPTOR : D.POST_MESSAGE_PLACEHOLDER_DESCRIPTOR)}bare