Having a text input box in VueJs for a ticket, I faced an issue with the timer function. When the setTimer(10000) expires while I am still typing in the input box, the page reloads and my input is erased. This interruption lasts only about 3 seconds but it is disrupting my workflow. What would be the most effective way to address this problem?
Snippet of Relevant Code
<b-field label="Description">
<b-input
type="textarea"
v-model="strValue"
:disabled="waiting.updateAttachment"
>
</b-input>
</b-field>
Javascript Section
strValue: {
get: function () {
return this.attachment.strValue;
},
set: function (val) {
let self = this; setTimeout(function(){ return self.updateAttachment([self.attachment.id, { strValue: val }]) },8000) },
},
},