Skip to content

Add forwardRef call to Button Component#43666

Closed
chiaramooney wants to merge 1 commit into
facebook:mainfrom
chiaramooney:cm-button-ref
Closed

Add forwardRef call to Button Component#43666
chiaramooney wants to merge 1 commit into
facebook:mainfrom
chiaramooney:cm-button-ref

Conversation

@chiaramooney

Copy link
Copy Markdown
Contributor

Summary:

When RN moved Button component from a class component to a function component (07e8ae4) a forwardRef call was not added to the Button control. This caused a set of tests downstream in React Native for Windows to fail because they rely on being able to pass a ref through to the Button control.

Changelog:

[GENERAL] [FIXED] - Adds forwardRef call to new functional component implementation of Button control.

Test Plan:

Button render remains the same.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Mar 26, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@zeyap has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 28, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@zeyap merged this pull request in 8e7263a.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants