Co-authored-by: LinYing <linying@momenta.ai>tags/1.1.0
| @@ -310,7 +310,8 @@ export const useFile = (fileConfig: FileUpload) => { | |||
| const handleClipboardPasteFile = useCallback((e: ClipboardEvent<HTMLTextAreaElement>) => { | |||
| const file = e.clipboardData?.files[0] | |||
| if (file) { | |||
| const text = e.clipboardData?.getData('text/plain') | |||
| if (file && !text) { | |||
| e.preventDefault() | |||
| handleLocalFileUpload(file) | |||
| } | |||