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

node:mouseleave 无法触发 #4444

Closed
perryoneone opened this issue Apr 19, 2023 · 3 comments
Closed

node:mouseleave 无法触发 #4444

perryoneone opened this issue Apr 19, 2023 · 3 comments

Comments

@perryoneone
Copy link

Describe the bug

node:mouseleave事件无法正常触发

Your Example Website or App

https://codesandbox.io/p/sandbox/sad-hoover-8n0fw6?file=%2Fsrc%2FApp.vue

Steps to Reproduce the Bug or Issue

1、鼠标进入节点上可以正常触发node:mouseenter
2、鼠标离开节点时node:mouseleave事件不生效

Expected behavior

鼠标离开节点时node:mouseleave事件正常触发

Screenshots or Videos

No response

Platform

  • OS: macOS13.2.1
  • Browser: Microsoft Edge
  • Version: 112.0.1722.39 (Official build) (arm64)

Additional context

No response

@avrinfly
Copy link

我也遇到类似的问题了,请教一下,你是怎么解决的

@perryoneone
Copy link
Author

我也遇到类似的问题了,请教一下,你是怎么解决的

https://codesandbox.io/p/sandbox/sad-hoover-8n0fw6?file=%2Fsrc%2FApp.vue%3A58%2C13-58%2C28

@joohs
Copy link

joohs commented Nov 10, 2023

vue2使用shallowRef来解决

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

No branches or pull requests

3 participants