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

Cannot select nested component if parent has @mouseover.stop #487

Open
joelearn opened this issue Jun 26, 2024 · 4 comments
Open

Cannot select nested component if parent has @mouseover.stop #487

joelearn opened this issue Jun 26, 2024 · 4 comments
Labels
bug Something isn't working upstream Related to an upstream issue

Comments

@joelearn
Copy link

If a component has a @mouseover.stop handler defined, no child components can be selected via the devtools components tab. However, it works as expected using the component inspector tool.

Here's a reproduction: https://stackblitz.com/edit/vitejs-vite-j4abqj?file=src%2Fcomponents%2FHelloWorld.vue

@alexzhang1030 alexzhang1030 added upstream Related to an upstream issue bug Something isn't working labels Jun 27, 2024
@alexzhang1030
Copy link
Member

It's might a bug of vite-plugin-vue-inspector

@joelearn
Copy link
Author

Just using vite-plugin-vue-inspector on its own seems to work fine. Try it here: https://stackblitz.com/edit/vitejs-vite-7ujp2h?file=src%2FApp.vue

Do both ways of selecting a component use this plugin?

@alexzhang1030 alexzhang1030 removed the upstream Related to an upstream issue label Jul 15, 2024
@alexzhang1030
Copy link
Member

We need to find a way to force ignore stopPropogation

@joelearn
Copy link
Author

So after a little digging around, vite-plugin-vue-inspector uses mousemove for highlighting components. This can be replicated by adding @mousemove.stop to a component, which will then stop the highlighting of nested components. See: https://stackblitz.com/edit/vitejs-vite-cufj5x?file=src%2Fcomponents%2FHelloWorld.vue

We could have devtools-next use mousemove to be consistent with vite-plugin-vue-inspector, but going with the suggestion by @alexzhang1030 would be more robust.

@alexzhang1030 alexzhang1030 added the upstream Related to an upstream issue label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Related to an upstream issue
Projects
None yet
Development

No branches or pull requests

2 participants