Skip to content

fix(overlay): use toggleEnabled instead of enable to allow exiting in…#1067

Open
SaKaNa-Y wants to merge 4 commits intovuejs:mainfrom
SaKaNa-Y:patch-1
Open

fix(overlay): use toggleEnabled instead of enable to allow exiting in…#1067
SaKaNa-Y wants to merge 4 commits intovuejs:mainfrom
SaKaNa-Y:patch-1

Conversation

@SaKaNa-Y
Copy link

…spector mode

When using it, I noticed that Escape is the only way to exit. Clicking the button again doesn’t toggle the state, so I think adding a toggle feature would improve the user experience.

tip: I think the inspector button should be highlighted when element selection is active and not highlighted when selection is canceled.This way, the user perception will be much clearer.

…spector mode

When using it, I noticed that Escape is the only way to exit. Clicking the button again doesn’t toggle the state, so I think adding a toggle feature would improve the user experience.
@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 61018a7
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/69be1a055360e00008a99ee3

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A similar change was attempted in #893, but it contained a bug (if(vueInspectorEnabled.value) was not the correct check) and was reverted just after being merged.

I think this change is a good idea. Toggling seems much more natural to me. Even the tooltip for that button reads Toggle Component Inspector.

tip: I think the inspector button should be highlighted when element selection is active and not highlighted when selection is canceled.This way, the user perception will be much clearer.

Agreed. I've attempted that in #1069.

@SaKaNa-Y SaKaNa-Y requested a review from skirtles-code March 21, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants