fix: trim whitespace from URL input in file uploader component #16700 (#16722)

This commit is contained in:
GuanMu
2025-03-25 16:48:25 +08:00
committed by GitHub
parent 05c6d57f29
commit 0811a23cd4

View File

@@ -74,7 +74,7 @@ const FileFromLinkOrLocal = ({
value={url}
onChange={(e) => {
setShowError(false)
setUrl(e.target.value)
setUrl(e.target.value.trim())
}}
disabled={disabled}
/>