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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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