nicolium: use correct button type to make ctrl+enter work in compose form

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-04-08 08:58:40 +00:00
parent ccf435ac1e
commit 856e661bc5
3 changed files with 3 additions and 2 deletions

View File

@@ -106,6 +106,7 @@ const ContentTypeButton: React.FC<IContentTypeButton> = ({ composeId, compact })
}))}
>
<button
type='button'
className='⁂-content-type-button'
title={compact ? option?.text : intl.formatMessage(messages.changeContentType)}
>

View File

@@ -299,7 +299,7 @@ const LanguageDropdownButton: React.FC<ILanguageDropdownButton> = ({ composeId,
return (
<DropdownMenu component={LanguageDropdown} className='⁂-language-dropdown'>
<button title={intl.formatMessage(messages.languagePrompt)}>
<button type='button' title={intl.formatMessage(messages.languagePrompt)}>
<Icon src={iconTranslate} aria-hidden />
{buttonLabel}
<Icon src={iconCaretDown} aria-hidden />

View File

@@ -230,7 +230,7 @@ const PrivacyDropdown: React.FC<IPrivacyDropdown> = ({ composeId, compact }) =>
return (
<DropdownMenu items={items} width='16rem'>
<button title={compact ? text : intl.formatMessage(messages.changePrivacy)}>
<button type='button' title={compact ? text : intl.formatMessage(messages.changePrivacy)}>
{valueOption?.icon && <Icon src={valueOption.icon} aria-hidden />}
{compact ? undefined : text}
<Icon src={iconCaretDown} aria-hidden />