project-booster-vue 9.57.0 → 9.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
v-model="searchKeyword"
|
|
76
76
|
@input="handleSearchKeywordChange"
|
|
77
77
|
@focus="handleSearchKeywordFocus"
|
|
78
|
+
@keypress="handleSearchKeywordKeypress($event)"
|
|
78
79
|
tabindex="1"
|
|
79
80
|
/>
|
|
80
81
|
</m-flex>
|
|
@@ -398,6 +399,12 @@ export default defineComponent({
|
|
|
398
399
|
selectedCityToKeyword(): string {
|
|
399
400
|
return this.selectedCity?.postalCode + ' ' + this.selectedCity?.name + ', ' + this.selectedCity?.region;
|
|
400
401
|
},
|
|
402
|
+
// This function is used to avoid submitting the form when pressing enter in the search input
|
|
403
|
+
handleSearchKeywordKeypress(event: KeyboardEvent) {
|
|
404
|
+
if (event.key === 'Enter') {
|
|
405
|
+
event.preventDefault();
|
|
406
|
+
}
|
|
407
|
+
},
|
|
401
408
|
},
|
|
402
409
|
});
|
|
403
410
|
</script>
|