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

在webComponent自定义元素a的shadow dom里面使用TimePicker组件,把这个自定义元素a放到另外一个webComponent自定元素b的shadow dom中,TimePicker组件无法选中时间,第二次点击时间,会自动关闭时间选择框。 #48952

Open
gdutzhendong opened this issue May 16, 2024 · 6 comments

Comments

@gdutzhendong
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击时间输入框,打开时间选择弹框,点击其中一个时间,然后再点击另外一个不同的时间,这是没有点确认按钮,弹窗也会自动关闭

What is expected?

在webComponent自定义元素a的shadow dom里面使用TimePicker组件,把这个自定义元素a放到另外一个webComponent自定元素b的shadow dom中,TimePicker组件功能可以正常使用。

What is actually happening?

在webComponent自定义元素a的shadow dom里面使用TimePicker组件,把这个自定义元素a放到另外一个webComponent自定元素b的shadow dom中,TimePicker组件功能不能正常使用。

Environment Info
antd 5.17.2
React latest
System macOs 7429.81.3
Browser chrom 124.0.6367.158
@gdutzhendong
Copy link
Author

gdutzhendong commented May 16, 2024

Uploading 屏幕录制2024-05-16 下午10.52.51.mov…

@zombieJ
Copy link
Member

zombieJ commented May 22, 2024

你的 codesandbox 是 private 的……

@zombieJ zombieJ added 🤔 Need Reproduce We cannot reproduce your problem and removed unconfirmed labels May 22, 2024
Copy link
Contributor

Hello @gdutzhendong. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @gdutzhendong,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
@gdutzhendong
Copy link
Author

gdutzhendong commented May 27, 2024

你的 codesandbox 是 private 的……
我已经改成public了,现在可以访问了@ zombieJ

@gdutzhendong
Copy link
Author

gdutzhendong commented May 27, 2024 via email

@yoyo837 yoyo837 removed the 🤔 Need Reproduce We cannot reproduce your problem label May 27, 2024
@yoyo837 yoyo837 reopened this May 27, 2024
@gdutzhendong
Copy link
Author

看起来是底层依赖的react-component/trigger这个项目的问题。
在那边提交了一个pr:react-component/trigger#462
issue :react-component/trigger#463
你们看看这样解决是否合适?

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