You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to reproduce this on Gutenberg v8.3, but currently ran into this problem on edge sites. Sometimes (more rarely) it is triggered just by opening the SPT Layout Picker. But more consistently reproducible by:
Navigate to the editor on an edge stickered site.
Load the layout picker ('Change layout' button on the right document bar)
Select 'Dalston' layout (this is only reproducible with certain layouts)
Click the large preview on the right.
hit 'Tab'
Notice the editor breaks with an error:
The text was updated successfully, but these errors were encountered:
After investigating further the error seems to be coming from the core Popover component, @andrewserong had some thoughts:.
it looks or feels like there's a Popover somewhere that's trying re-adjust its size, and I'm wondering if somehow the block provider expects there to be a Popover.Slot — or because our parent document's block provider has one, it's somehow expecting something like that here?
I did experiment with adding a Popover.Slot and SlotFillProvider but that didn't seem to change anything.
I can add a handful of ?. conditions to the Popover component to stop the error on my local setup, but this seems to be more of a bandaid and none of those seem to correspond to recent changes within the file itself.
I tried replacing the custom BlockPreview used in SPTs with the core version, but the error persists in that case as well.
It seems most (but not all) of the Layouts that trigger this error have links/CTA Buttons near the top.
Addison-Stavlo
changed the title
SPT Preview - 'getBoundingClientRect of undefined' error on 8.5-alpha+
SPT Preview - editor crashes with 'getBoundingClientRect of undefined' error on 8.5-alpha+
Aug 13, 2020
I have an unconfirmed suspicion that this may be fixed by WordPress/gutenberg#24397 which was created to fix a similar tabbing through previews issue - #44042 . That fix is included with 8.8 which I believe should be live on edge sites early next week, so it may be worth testing this issue again once that is live.
I am not able to reproduce this on Gutenberg v8.3, but currently ran into this problem on edge sites. Sometimes (more rarely) it is triggered just by opening the SPT Layout Picker. But more consistently reproducible by:
Notice the editor breaks with an error:
The text was updated successfully, but these errors were encountered: