You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Bug Report
The Button component assumes that the 'as' provided accepts the ref property. Stateless functional components do not support this.
Steps
In sandbox below just load it fresh with the console open to see the error which happens on first load only.
Expected Result
To error when using SFC
Actual Result
Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
Check the render method of
Button
.in as (created by Button)
in Button (created by TestButton)
in TestButton
Version
0.77.1
Testcase
https://codesandbox.io/s/400zm5vkr7
The text was updated successfully, but these errors were encountered: