Breakpoints celector throws error when using it

Description:

After updating and playing with new custom breakpoints (I did not add new ones).
I discovered that after changing to tablet mobile and than desktop cwicly gets error.

This is the errror

TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
at vo (https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:41:74786)
at fo (https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:41:74054)
at xo (https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:41:75337)
at Do (https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:41:80348)
at Object.whileElementsMounted [as current] (https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:48:233738)
at https://dev.rvs.sk/wp-includes/js/dist/components.min.js?ver=f6e63a4760dcece8b909:48:233116
at Ur (https://dev.rvs.sk/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:73411)
at Jr (https://dev.rvs.sk/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80643)
at Zr (https://dev.rvs.sk/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80489)
at Gr (https://dev.rvs.sk/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80023)

Please write the steps needed to reproduce the bug.

  1. open editor of page
  2. edit page
  3. edit page on different device sizes
  4. go back to desktop (via main icon of device selector - not from dropdown)

Screenshots, screen recording, code snippet

Environment info

  • WordPress version: 6.4.2
  • Cwicly Plugin version: 1.3.4.5

I forgot to mention that i have regenerated everything after update of plugin.

Hello @JohnySvitana,

Sorry to hear you’re having trouble here.
Can you possibly let me know if this is happening in every instance?

Does it happen when:

  • No block is selected
  • Selected block is not within a Repeater, Query or any kind of loop
  • Does it happen in the post and site editor?

Thanks in advance.

Cheers,

hello @Louis

Does it happen when:

  • No block is selected ---------- no error
  • Selected block is not within a Repeater, Query or any kind of loop ---------- no error
  • Does it happen in the post and site editor? ---------- I am not sure what is the difference but this is classic page

Thanks.