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:
@@ -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)}
|
||||
>
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user