X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/a626c30095620f913366ef2c7db705f66ecdb988..7ed97d6aceab15f29088f45aa6fbf1eda551173d:/src/components/SearchSection.svelte diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index 6bf7bca..e50bbdf 100644 --- a/src/components/SearchSection.svelte +++ b/src/components/SearchSection.svelte @@ -69,7 +69,7 @@ } function set_dedupe(e) { - document.querySelector('input[name=dedupe]').value = e.target.checked ? 1 : ''; + document.querySelector('input[name=dedupe]').value = e.target.checked ? 1 : 0; } function set_api_param(e) { @@ -95,12 +95,13 @@ type="text" class="form-control form-control-sm" placeholder="Search" - value="{api_request_params.q || ''}" /> + value="{api_request_params.q || ''}" + autofocus />