Skip to content

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

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

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions