disable "Load URL" button if url is empty

This commit is contained in:
James Scott-Brown
2023-03-10 16:21:27 +00:00
committed by GitHub
parent c3c6ab52dd
commit 163397050b

View File

@@ -142,7 +142,7 @@ function Start(props: {
placeholder="https://example.com/my_archive.pmtiles"
onChange={onRemoteUrlChangeHandler}
></Input>
<Button color="gray" onClick={onSubmit}>
<Button color="gray" onClick={onSubmit} disabled={!remoteUrl.trim()}>
Load URL
</Button>
<Label htmlFor="localFile">Select a local file</Label>