Skip to content

@react-aria: forwardRef supportΒ #834

@jlarmstrongiv

Description

@jlarmstrongiv

πŸ™‹β€β™‚οΈ Feature Request

Support for React.forwardRef on custom form elements to accommodate:

πŸ€” Expected Behavior

  • Having an optional ref on my custom form component.

😯 Current Behavior

  • I can use React.forwardRef, but then I would always need to pass in a ref
  • I can go without refs, forgoing their benefits

πŸ’β€β™‚οΈ Possible Solution / πŸ’» Examples

Implement a utility to share / combine refs. Several similar implementations already exist:

πŸ”¦ Context

I would like to build robust and accessible custom form components that support both controlled and uncontrolled component patterns.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions