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

Drawer.Body ref returning ModalBody instead of the reference to the HTMLDivElement #1127

Closed
ghidoras opened this issue Jun 15, 2020 · 2 comments · Fixed by #3040
Closed

Drawer.Body ref returning ModalBody instead of the reference to the HTMLDivElement #1127

ghidoras opened this issue Jun 15, 2020 · 2 comments · Fixed by #3040

Comments

@ghidoras
Copy link

Versions

package version
react 16.13.1
rsuite 4.7.3

What is the expected behavior?

The ref prop of Drawer.Body should return a reference to the underlying html element.

What is the current behavior?

The ref prop is returning the ModalBody react component.

What are the steps to reproduce?

Just set the ref prop with a callback function and inspect the first argument.

@simonguo
Copy link
Member

We have noticed the existence of this problem and will improve it in subsequent versions.

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants