fixed touch input

This commit is contained in:
Luca Haid
2025-01-14 12:56:12 +01:00
parent 1ec1afd859
commit 6233454b66

View File

@@ -49,7 +49,7 @@ Vue.component('tt-autocomplete', {
:class="{'active': value === item.value}"
class="dropdown-item"
@click.prevent="selectSuggestion(item)"
@touchstart.prevent="selectSuggestion(item)"
@mousedown.prevent="selectSuggestion(item)"
style="cursor: pointer;"
>
{{ item.text }}
@@ -81,6 +81,7 @@ Vue.component('tt-autocomplete', {
returnText: {type: Boolean, default: false},
}, data() {
return {
window,
displayingItems: [],
oldDisplayValue: '',
displayValue: '',