mardi 13 octobre 2020

Issue focus input on Windows 10 pro

I have been reported an error, in a displayed VUE app, related to a focus in a checkbox, apparently when you click on it, the focus goes up and it doesn't check the box.

              
              <div>
                 <input 
                 ref="email"
                 type="text" 
                 v-model="formInfo.email"
                 @change="formChange($event)"
                 />
              </div>
              
              <div>
                <input 
                ref="formConditions"
                v-model="check" 
                type="checkbox"
                @change="formChange($event)" 
                />
                <label>Accept conditions.</label>
              </div>


      if (this.formInfo.email) {   
        setTimeout(() => (this.$refs.formConditions.focus()), 10);
      }
      if (this.check) {
        setTimeout(() => (this.$refs.submit.focus()), 10);
      }



After checking in all browsers I cannot reproduce the error. I asked them about the device and the browser used and they said that it was a problem with Windows 10 Pro. I have not found any solution.

Does anyone have a solution for this?

Thank you all in advance




Aucun commentaire:

Enregistrer un commentaire