admin管理员组

文章数量:1402614

Just recently I discovered the above mentioned error occurs on a Quasar project's web form QForm component submit which never has a code changed for the past 6 months and without issue but recently after repeat build of Quassar command.

[Error showing on a console of Incognito browser][1] [1]: .png

[Quasar code][1] [1]: .png

After spending 2 hours to understand the Incognito's console log and made below 2 spots code bandage to get thing running in the mean time until Quasar provides a fix.

Here are 2 spots in my code for the bandage to get things running.

  1. I added 3 QForm's props, autofocus, noErrorFocus and noResetFocus:

     <q-form
       ref="formRef"
       :autofocus="false"
       :noErrorFocus="true"
       :noResetFocus="true"
       class="q-mt-xs row col-12"
     >
    
  2. I commented out the QForm's validation return:

    formRef.value?.validate().then(async (success: boolean) => {
       // Commented out as it triggered Quasar form's bug
       // if (!success) {
       //   cancelFormSubmit(index !== 0, false);
       //   await nextTick();
       //...
       //   return;
       // }
       ...
    

However with this bandage that means I have to trade off the QInput's rules prop like javascript Validator plugin not applicable and not working (because I commented out the code as highlighted above)...

本文标签: