creativetimofficial / ct-vue-paper-dashboard-pro

Vue Paper Dashboard PRO - made by Creative Tim
https://www.creative-tim.com/product/vue-paper-dashboard-pro
41 stars 13 forks source link

DOMException when using a Wizard #84

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello there,

I am currently facing a problem with the simple wizard component. For what seems to be random, every once in a while the component fails to mount when the page is loading up. The error that I am receiving is as follows:

DOMException: Failed to execute 'querySelectorAll' on 'Document': '#0bu2e4 .wizard-tab-link' is not a valid selector.
    at VueComponent.onResize (http://localhost:8080/app.js:13105:31)
    at VueComponent.addTab (http://localhost:8080/app.js:12989:12)
    at VueComponent.mounted (http://localhost:8080/app.js:13155:10)
    at invokeWithErrorHandling (http://localhost:8080/app.js:73173:57)
    at callHook (http://localhost:8080/app.js:74406:7)
    at Object.insert (http://localhost:8080/app.js:75738:7)
    at invokeInsertHook (http://localhost:8080/app.js:77553:28)
    at Vue.patch [as __patch__] (http://localhost:8080/app.js:77772:5)
    at Vue._update (http://localhost:8080/app.js:74136:19)
    at Vue.updateComponent (http://localhost:8080/app.js:74257:10) mounted hook

Simply wrapping the onResize() method on a try...catch seems to take care of it, but I do not know if that has indirect consequences.

Thanks