coreui / coreui-free-vue-admin-template

Open source admin template based on Bootstrap 5 and Vue 3
https://coreui.io/product/free-vue-admin-template/
MIT License
3.28k stars 963 forks source link

An error about getComputedStyle. #295

Closed Emrehrz closed 1 year ago

Emrehrz commented 1 year ago

I modified the coreui & vuejs3 free template and recently get some error about: Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. Especially I encounter this error when Im shrink the browser window or resize it.

using windows 10 and latest version chrome browser

sametsafak commented 1 year ago

I also have this error. It comes from src/components/sidebar/CSidebar:6 isOnMobile function

Normally, it's not visible but when I logged out and resize the screen, I can see it. I guess this error occurs when the main layout changes and the sidebar becomes hidden. Maybe @mrholek can help us.

mrholek commented 1 year ago

I will fix it in the next release

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions