fix: restore image upload (#11803)

This commit is contained in:
Apoorv Mishra
2026-03-18 18:02:34 +05:30
committed by GitHub
parent 4673ff0840
commit 07099bb4f6
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -757,7 +757,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
const fileInput = uploadFile && (
<VisuallyHidden.Root>
<label>
<Trans>Import document</Trans>
<Trans>Upload file</Trans>
<input
type="file"
ref={inputRef}
@@ -977,9 +977,9 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
) : (
<List>{renderItems()}</List>
)}
{fileInput}
</BouncyPopoverContent>
</Popover>
{fileInput}
{submenu && itemRefs.current.get(submenu.index) && (
<Popover open modal={false}>
<PopoverAnchor
@@ -559,6 +559,7 @@
"Mention": "Mention",
"Embed": "Embed",
"Not supported": "Not supported",
"Upload file": "Upload file",
"More options": "More options",
"Rename": "Rename",
"Insert after": "Insert after",