Skip to content

IconButton does not setup the ref with the element value. #6752

@pksjce

Description

@pksjce

Description

When you use the following

const buttonRef = useRef(null)
return <IconButton ... ref={buttonRef}/>

buttonRef.current is always null

Steps to reproduce

This can be reproduced on this https://stackblitz.com/edit/react-apgzexpe-gpnosw53?file=Demo.tsx

Version

latest

Browser

Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions