mirror of
https://github.com/bellingcat/osm-search.git
synced 2026-06-07 19:18:32 +03:00
Fix issues with combo box blur
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<v-combobox
|
||||
class="code"
|
||||
label="OSM key"
|
||||
v-model="f.parameter"
|
||||
:search-input.sync="f.parameter"
|
||||
:items="$store.state.osmKeys"
|
||||
@input="getValues"
|
||||
>
|
||||
@@ -65,7 +65,7 @@
|
||||
<v-combobox
|
||||
class="code"
|
||||
label="OSM value"
|
||||
v-model="f.value"
|
||||
:search-input.sync="f.value"
|
||||
:items="$store.state.selectedKeyValues"
|
||||
:disabled="
|
||||
f.comparison == 'is null' || f.comparison == 'is not null'
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
value: "",
|
||||
},
|
||||
];
|
||||
this.selectedQueryType = "point";
|
||||
this.selectedQueryType = "any";
|
||||
},
|
||||
addFilter() {
|
||||
this.filters.push({
|
||||
|
||||
@@ -117,6 +117,9 @@ export default new Vuex.Store({
|
||||
},
|
||||
getValues({ commit }, v) {
|
||||
commit("setSelectedKeyValues", []);
|
||||
if (v == "" || v == undefined || v == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
fetch(
|
||||
"https://taginfo.openstreetmap.org/api/4/key/values?rp=50&sortname=count_all&sortorder=desc&key=" +
|
||||
|
||||
Reference in New Issue
Block a user