Release: v9.5.1#27580
Conversation
* Revert "Fix c and r formats, add tests." This reverts commit 1f73702. * Revert date changes from branch 'replace-moment' * fix merge error
Fix an issue where the `Popover` component throws a runtime `TypeError: Cannot read property 'getBoundingClientRect' of undefined.` This may happen in WordPress if a Popover is rendered in an iframe. It's been observed by rendering a `BlockList` component containing `RichText` in an iframe 😵 The issue is that `instanceof` checks fail across iframe boundaries, where `anchorRef instanceof window.Element` fails because `anchorRef` when it _is_ an instance of Element in the frame but not `window.Element`. Instead of `instanceof` checks that fail across iframe boundaries, check for expected methods as the predicate.
|
Size Change: +20.6 kB (1%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
|
Actually, this PR is targetting the wrong branch, it should target release/9.5 Edit: Nevermind, I got confused by the name of the branch itself :) |
|
Looks like there's a small package.lock diff that might be good to fix to get the tests passing |
@youknowriad, this one's actually a bit confusing to me (https://github.com/WordPress/gutenberg/runs/1518139432?check_suite_focus=true) - shouldn't it be running |
|
Ideally we don't name temporary branches |
|
@WunderBart I thought there's a valid reason for this check to not run |
Cherry-picked bugfix PRs for a patch release: