fix(edit menu): modal position would bug out when resizing textarea to edit post content

This commit is contained in:
Tom (plebeius.eth)
2024-08-28 11:15:04 +02:00
parent 30b8dce020
commit 4858ceadc9
+1 -1
View File
@@ -90,7 +90,7 @@ const EditMenu = ({ isAccountMod, isAccountCommentAuthor, isCommentAuthorMod, po
placement: 'bottom-start',
open: isEditMenuOpen,
onOpenChange: setIsEditMenuOpen,
middleware: [offset(2), flip({ fallbackAxisSideDirection: 'end' }), shift()],
middleware: [offset(2), shift()],
whileElementsMounted: autoUpdate,
});