mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 00:35:32 +08:00
fix(provider): allow typing :// in endpoint URL inputs
Change input type from "url" to "text" to prevent browser URL validation from blocking :// input. Closes #681
This commit is contained in:
@@ -525,7 +525,7 @@ const EndpointSpeedTest: React.FC<EndpointSpeedTestProps> = ({
|
||||
<div className="space-y-1.5">
|
||||
<div className="flex gap-2">
|
||||
<Input
|
||||
type="url"
|
||||
type="text"
|
||||
value={customUrl}
|
||||
placeholder={t("endpointTest.addEndpointPlaceholder")}
|
||||
onChange={(event) => setCustomUrl(event.target.value)}
|
||||
|
||||
@@ -49,7 +49,7 @@ export function EndpointField({
|
||||
</div>
|
||||
<Input
|
||||
id={id}
|
||||
type="url"
|
||||
type="text"
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
placeholder={placeholder}
|
||||
|
||||
Reference in New Issue
Block a user