Answer the question
In order to leave comments, you need to log in
How to simulate keyboard input of data in an input field?
Good evening. I have a vue component in which a form for data entry. Below is part of the form.
<div class="form-group row">
<label for="id-number" class="col-sm-3 col-form-label">{{voc.numberFss[lang]}}</label>
<div class="col-sm-8">
<input
id="id-number"
name="numberFss"
type="text"
class="form-control"
:placeholder="placeHolderNumFss"
@input.stop="inputHandler($event); $emit('search-fss')"
>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Use .dispathEvent() to trigger the input event on the fields you need.
Add v-model to the input
and bind it to the value in data.
After loading the xml, substitute the received information into your value in data.
It will automatically be assigned to input.
And add watch to your value in data and as soon as it satisfies the conditions do true.
Or you can make isChecked a computed property and return true if the value in input matches the requirements.
All the same, this is vue and you need to use its functionality
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question