[Button] [ButtonLink] [Link] Support ref on Button / Link components #435
Labels
priority: high
High priority items, users are affected, and the core team will prioritize
status: completed ✅
An item that has been closed, due to its completion
type: enhancement
enhancement or new requests
Milestone
Description
ref
attribute returnsnull
when used on ButtonLink. Haven't tested on all other Button/Link type components, but I would assume it happens on them as well. It'd be great if these could support the ref attribute [ref={ (input) => { this.button = input } }
] so that it's possibly to reference (and focus!) on the button for accessibility purposes.Reproduction Steps
ButtonLink
component to appref={ (input) => { this.button = input } }
this.button
Version Number of TDS
0.29.0
The text was updated successfully, but these errors were encountered: