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

Popup 组件 使用 PopupPlugin 给元素配置hover效果时,表现异常 #3220

Closed
sevencai opened this issue Nov 20, 2024 · 2 comments
Closed
Labels

Comments

@sevencai
Copy link

如下图所示,在官方提供的demo示例中,使用popupplugin弹出时

若在组件初始化时调用popupplugin,且trigger的类型是hover时,组件表现异常

image

具体异常的点在:

  1. 一进入就展示了popup内容
  2. hover时,无法展示popup内容

复现地址:https://stackblitz.com/edit/react-o3zkpk?file=src%2Fdemo.tsx,node_modules%2Ftdesign-react%2Fes%2Fpopup%2Findex.d.ts,node_modules%2Ftdesign-react%2Fes%2Fpopup%2FPopupPlugin.d.ts,node_modules%2Ftdesign-react%2Fes%2Fpopup%2Ftype.d.ts

Copy link
Contributor

👋 @sevencai,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO HaixingOoO added the 💭 discussion we are discussing label Nov 23, 2024
@uyarn
Copy link
Collaborator

uyarn commented Nov 27, 2024

插件形式下trigger这个属性是不起作用的 如果需要在hover时出现 就在mouseenter事件回调使用popupplugin就可以的

@uyarn uyarn added usage and removed 💭 discussion we are discussing labels Nov 27, 2024
@uyarn uyarn closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants