Fix ordering of keyboard access between CW field, textarea and emoji picker

This commit is contained in:
ThibG 2021-08-28 14:26:20 +02:00 committed by marcin mikołajczak
parent 4b4e815e40
commit 2ef0cdb71b
3 changed files with 2 additions and 11 deletions

View File

@ -314,10 +314,6 @@ export default class ComposeForm extends ImmutablePureComponent {
/>
</div>
<div className='emoji-picker-wrapper'>
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} />
</div>
<AutosuggestTextarea
ref={(isModalOpen && shouldCondense) ? null : this.setAutosuggestTextarea}
placeholder={intl.formatMessage(messages.placeholder)}
@ -333,6 +329,7 @@ export default class ComposeForm extends ImmutablePureComponent {
onPaste={onPaste}
autoFocus={shouldAutoFocus}
>
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} />
{
!condensed &&
<div className='compose-form__modifiers'>

View File

@ -62,9 +62,8 @@
.emoji-picker-dropdown {
position: absolute;
top: 5px;
top: 10px;
right: 5px;
z-index: 1;
}
.compose-form__autosuggest-wrapper {
@ -141,7 +140,6 @@
}
}
.emoji-picker-wrapper,
.autosuggest-textarea__suggestions-wrapper {
position: relative;
height: 0;

View File

@ -148,10 +148,6 @@
padding: 20px;
margin-bottom: 20px;
.emoji-picker-wrapper {
.emoji-picker-dropdown { top: 10px; }
}
.compose-form {
flex: 1 1;
padding: 0 0 0 20px !important;