Bug report 🐞
Version & Environment
- Version of browser: 92.0.4515.159
- Version of
I expected collapse component to have
forwardRef in place, so it'd pass my ref to the DOM. I don't think it does.
I wish to scroll to a particular collapse component within the collapse group. Since, I am not able to attach a ref to it, hence not able to scroll that collapse into view.
Actual results (or Errors)
I got an error:
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?