Answer the question
In order to leave comments, you need to log in
Why is input not working correctly in Google Chrome on Android (Vue.js app)?
Greetings!
I am writing an application in Vue.js. It has an input, each time its value changes, the metro list should be filtered (in my opinion, a fairly standard situation).
<input
type="text"
class="select-input"
v-model="searchInput"
@keydown="searchMetro"
placeholder="Поиск"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-autocomplete="none"
>
Answer the question
In order to leave comments, you need to log in
Don't use a keydown event, use a model watcher , or generally make the display list computed based on the model.
Actually, there is a direct example in the documentation for this: https://ru.vuejs.org/v2/examples/grid-component.html
Of the ready-made solutions, Bootsrap has it. For example code:
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
<span class="sr-only">45% Complete</span>
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question