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.
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" >
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)...
本文标签:
版权声明:本文标题:typescript - Quasar v2 QForm - "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ' 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744352359a2602127.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论