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

[Button] Button-findDOMNode #48809

Closed
wanpan11 opened this issue May 7, 2024 · 6 comments · Fixed by #48830
Closed

[Button] Button-findDOMNode #48809

wanpan11 opened this issue May 7, 2024 · 6 comments · Fixed by #48830
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@wanpan11
Copy link
Contributor

wanpan11 commented May 7, 2024

Reproduction link

Edit on StackBlitz

Steps to reproduce

点击按钮 查看控制台

What is expected?

What is actually happening?

Environment Info
antd 5.17.0
React 18.3.1
System Windows
Browser Chrome

Copy link

stackblitz bot commented May 7, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@wanpan11
Copy link
Contributor Author

wanpan11 commented May 7, 2024

image

@zombieJ
Copy link
Member

zombieJ commented May 7, 2024

断点看了一下,ref 被正确填充,但是外部使用时却莫名置空了。奇怪。。。

@zombieJ zombieJ added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels May 7, 2024
@wanpan11
Copy link
Contributor Author

wanpan11 commented May 8, 2024

image

好像是这里没有调用 setNodeRef 导致的
我本地加上这个调用就好了

@wanpan11
Copy link
Contributor Author

wanpan11 commented May 8, 2024

image

这样好像就行了

@wanpan11
Copy link
Contributor Author

wanpan11 commented May 10, 2024

link #48709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants