Skip to content

Commit f512567

Browse files
committed
fix: suggestion list late frame animations
1 parent b47a478 commit f512567

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

package/src/components/MessageInput/MessageComposer.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const useStyles = () => {
129129
shadowRadius: 12,
130130
},
131131
suggestionsListContainer: {
132-
backgroundColor: semantics.backgroundCoreElevation1,
132+
backgroundColor: 'transparent',
133133
position: 'absolute',
134134
width: '100%',
135135
},
@@ -366,7 +366,12 @@ const MessageComposerWithContext = (props: MessageComposerPropsWithContext) => {
366366
layout: { height: newHeight },
367367
},
368368
}) => {
369-
messageInputHeightStore.setHeight(newHeight);
369+
messageInputHeightStore.setHeight(
370+
newHeight -
371+
(selectedPicker && !isKeyboardVisible
372+
? attachmentPickerBottomSheetHeight - bottomInset
373+
: 0),
374+
);
370375
}}
371376
style={
372377
messageInputFloating
@@ -449,7 +454,17 @@ const MessageComposerWithContext = (props: MessageComposerPropsWithContext) => {
449454
)}
450455
</View>
451456
<View
452-
style={[styles.suggestionsListContainer, { bottom: height }, suggestionListContainer]}
457+
style={[
458+
styles.suggestionsListContainer,
459+
{
460+
bottom:
461+
height +
462+
(!messageInputFloating && selectedPicker && !isKeyboardVisible
463+
? attachmentPickerBottomSheetHeight - bottomInset
464+
: 0),
465+
},
466+
suggestionListContainer,
467+
]}
453468
>
454469
<AutoCompleteSuggestionList />
455470
</View>

0 commit comments

Comments
 (0)