AT-UI / at-ui

A fresh and flat UI-Kit specially for desktop application, made with ♥ by Vue.js 2.0 (DEPRECATED)
https://at.aotu.io
MIT License
2.34k stars 230 forks source link

Errors when resize a Table Component with custom components in columns #117

Open raychar opened 6 years ago

raychar commented 6 years ago

Steps to reproduce

1.Render a custom component in columns of the <at-table></at-table>. 2.Resize browser or dev tool in browser.

Which browser?

"vue": "^2.5.2", "at-ui": "^1.2.0-beta", "at-ui-style": "^1.5.1", Chrome V66.0.3359.139

What is expected?

No error in console

What is actually happening?

Got thousands of errors in console:

[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'querySelectorAll' of undefined"

found in

---> <AtTable>
TypeError: Cannot read property 'querySelectorAll' of undefined
    at VueComponent.eval (at.js?cb07:6771)
    at Array.eval (vue.esm.js?efeb:1837)
    at flushCallbacks (vue.esm.js?efeb:1758)
// line 6771 of at.js
 var $td = _this3.$refs.body.querySelectorAll('tr')[0].querySelectorAll('td');
raychar commented 6 years ago

It seems that not only in Table Component, but many other components also threw this error. Is there any official developers say sth about this?

alif16syafri commented 6 years ago

I had same issues with this error as well. Is this some sort of bugs?

rideorgtfo commented 5 years ago

same issue

DavidKispe007 commented 4 years ago

Hola tuve ese mismo error :C Vé al module y en at.js, busca esta función: handleResize: function handleResize() {....} Lo que hice fue validar si es null También cambie los sizes pero eso ya a tu gusto