-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options popover opens behind sidebar panels unless you first interact with Editor content [6.2] #47923
Comments
I have confirmed that this problem is not reproduced in the latest Gutenberg trunk. |
This problem seems to be occurring with all header area popovers, not just option popovers:
I would mark this as high priority. fc0b1b4a8b0d17ae8b71e0edd5c04555.mp4 |
This is very weird and I couldn't pinpoint any PR that affected that and works in GB. I tested with |
This problem does not seem to be limited to header areas such as option popover. List view popover not coming to the forefrontPopover in the post sidebar is cut off and also not coming to the forefrontI have also noticed that when this problem occurs, the popovers are rendered in different positions. When a problem occurs, it is rendered next to the toggle button: When there is no problem (after first interact with editor content), the popover is rendered outside the button, not next to it: |
Just confirming that this remains an issue in Beta 2. |
I recorded it on Replay.io debugger if this could be of any help. https://app.replay.io/recording/replication-of-issue-47923--7f924d91-ae86-44a3-9667-768a14c17076 This is in WP 6.2 Beta 2. |
I have discovered that the problem probably involves the diff --git a/lib/client-assets.php b/lib/client-assets.php
index 0f6e64c27c..cd868b2711 100644
--- a/lib/client-assets.php
+++ b/lib/client-assets.php
@@ -200,6 +200,10 @@ function gutenberg_register_packages_scripts( $scripts ) {
// For example, `…/build/a11y/index.min.js` becomes `wp-a11y`.
$handle = 'wp-' . basename( dirname( $path ) );
+ if ( $handle === 'wp-components' ) {
+ continue;
+ }
+
// Replace extension with `.asset.php` to find the generated dependencies file.
$asset_file = substr( $path, 0, -( strlen( '.js' ) ) ) . '.asset.php';
$asset = file_exists( $asset_file ) |
If it is components related, perhaps @ciampo can chime in! |
Thank you for the ping!
If I understand correctly @t-hamano 's message, his findings imply that:
Considering that @t-hamano and @ntsekouras also confirmed that the bug can't be reproduced on |
The difference between the plugin and core behavior is that the I'm starting to believe this has something to do with the core build process. Why?The bug can't be reproduced on the release branch ( These two builds should be identical. |
Could it be related to the edit: from what I can tell it's not related, but I'll keep digging. |
Interestingly, the I set a breakpoint here and can see that the |
In this line the
I have the same impression about this.. I even tried locally latest core trunk with the packages from GB 15.2 and the issue is there.. Maybe @gziolo or @desrosj have any insights? |
I have a feeling this is related to the If I update Gutenberg to use 1.10.2, then I seem to be able to reproduce the issue, but it'd be good to get corroboration on that. Seems like there may have been a breaking change in that package. |
@tatasha2004 thanx for reporting this. I encountered this problem myself yesterday and did a bunch of testing to try to narrow down when (if not where) the problem was introduced before coming to report the issue. I'll add info on what I tested in case it helps something discover where the problem actually resides and how to fix it. I originally bumped into the problem using WP 6.2-beta2 (in Win 10 Chrome 110.0.5481.104) without the GB plugin active, and a custom block-based theme. I then tested:
In each of those, I used a bundled block-based theme (2023) and a bundled classic theme (2021), as well custom block-based and custom classic themes. The theme being used made no difference as to whether the bug surfaced. The only time the bug surfaced was when running both of the 6.2 betas w/o the plugin active. Hope this helps. |
In theory, I think @talldan identified the issue correctly. There are two options at the moment:
Option 2 would be preferred if it doesn’t come with too many changes risky for the major WP release. It will be necessary anyway in |
@gziolo, maybe we can go with option one for next beta, keep the issue open and work on the upgrade separately. What do you think? |
@Mamaduka, definitely the simplest approach for this week 💯 |
Interesting issue. Thanks all for the debugging, I'm 👍 with pinning valtio version for now until we figure this out. |
I have confirmed that this issue is not reproduced in WordPress 6.2-beta3-55401 without Gutenberg enabled. |
you beat me to it :-) I was just coming to say the same thing...now works fine for me thanx everyone! |
Works for me as well in Beta 3 with and without Gutenberg active. Given the number of confirmations that this issue is resolved, I am going to close this out. However, if anyone continues to experience popover issues, please let us know, and I will reopen. Thanks! |
@ndiego, we might want to create a new issue for the |
Description
Options sidebar opened under Yoast sidebar (WP version nightly 6.2-beta1-55300)
Step-by-step reproduction instructions
Actual result: Options sidebar opened under Yoast sidebar
Note:
With Gutenberg trunk:
-No issues.
Without Gutenberg:
The panel is under the Yoast sidebar
Screenshots, screen recording, code snippet
Environment info
mac Os 13.1
Chrome Version 110.0.5481.77
nginx
PHP 8.1.9
WP 6.2-beta1-55300
Beta tester 3.2.7
Yoast SEO 20.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: