Skip to content
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

Developer Tools inspector wp-block-navigation__responsive-dialog closes on inspection #56094

Closed
djcowan opened this issue Nov 13, 2023 · 2 comments
Labels
Needs Technical Feedback Needs testing from a developer perspective.

Comments

@djcowan
Copy link
Contributor

djcowan commented Nov 13, 2023

Code issue Line number isreference only.

className: 'wp-block-navigation__responsive-dialog',

  1. Responsive dialogue closes when Inspecting website using development inspector tools
  2. elements and styles including computed syles unable to be accessed or viewed for open dialog
    2.1 modal closes immediately upon inspection or any window activity (windows 10)
    nb. time delayed screenshot of interactivity elements was the only way for me to capture a reference to the issue
    Screenshot 2023-11-14 104555
Inspector.-.Google.Chrome.2023-11-14.11-32-37.-.Trim.mp4
@Mamaduka Mamaduka added the Needs Technical Feedback Needs testing from a developer perspective. label Nov 14, 2023
@Mamaduka
Copy link
Member

This isn't a bug with dialog; it is just how most popups behave - they close on focus outside. In the current case, they'll close when the focus is moved outside to the DevTools.

You can use Chrome's "Emulate Focus Page" feature when inspecting/debugging similar elements. Here's a quick intro video for it: https://www.youtube.com/watch?v=OZTnxUCMiJU. Remember to turn it off after inspecting the elements.

@bradhogan
Copy link

@Mamaduka Not sure how related this is by my ticket #57603 is showing that the console closes if the mobile menu is open and you try to click into any of the elements to inspect / adjust / etc. The menu closes when clicking into the dev console which it should not (this is a bug). For example, view https://www.notion.so/help in chrome > mobile device > click the hamburger to open the menu > then select an element in that menu to inspect and click into the dev console to do change an element etc. Notice the open mobile menu does close. This is how it should behave. Otherwise the dev console is useless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Technical Feedback Needs testing from a developer perspective.
Projects
None yet
Development

No branches or pull requests

3 participants