Fix issues with combo box blur

This commit is contained in:
Logan Williams
2023-04-05 11:19:37 +02:00
parent 99062a9291
commit e2ef4cdb4b
2 changed files with 6 additions and 3 deletions

View File

@@ -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({

View File

@@ -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=" +