diff --git a/package.json b/package.json index 27ba190a6..74f83334c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.8.0", + "version": "24.10.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index 8012c3c4e..eeb7aebd1 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -50,7 +50,10 @@ const value = computed({ return $props.modelValue; }, set(value) { - emit('update:modelValue', value); + emit( + 'update:modelValue', + postcodesOptions.value.find((p) => p.code === value) + ); }, }); @@ -101,16 +104,11 @@ function handleFetch(data) { :label="t('Location')" :placeholder="t('search_by_postalcode')" @input-value="locationFilter" - :default-filter="true" + :default-filter="false" :input-debounce="300" :class="{ required: $attrs.required }" v-bind="$attrs" - emit-value - map-options - use-input clearable - hide-selected - fill-input >