Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): add forward ref to PasswordInput component #5909

Conversation

code-blooded-developer
Copy link
Contributor

Closes #5893

Add forward ref to PasswordInput component.

Changelog

Changed

  • Changed PasswordInput component to use ref forwarding.

Testing / Reviewing

To test you can add ref on the Password component in the story. One way is to test focus on inputs.

@code-blooded-developer code-blooded-developer requested a review from a team as a code owner April 22, 2020 15:03
@ghost ghost requested review from dakahn and emyarod April 22, 2020 15:03
@netlify
Copy link

netlify bot commented Apr 22, 2020

Deploy preview for carbon-elements ready!

Built with commit 66ffe88

https://deploy-preview-5909--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Apr 22, 2020

Deploy preview for carbon-components-react ready!

Built with commit 66ffe88

https://deploy-preview-5909--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding a test. would you mind updating snapshots so it passes CI?

@code-blooded-developer code-blooded-developer requested a review from a team as a code owner April 22, 2020 15:43
@code-blooded-developer
Copy link
Contributor Author

@emyarod Can you help me here? The test cases are not failing in the local but here they are.

@emyarod
Copy link
Member

emyarod commented Apr 22, 2020

@code-blooded-developer you need to fetch the latest changes from master and rebuild the monorepo, then the snapshots should update correctly

@emyarod
Copy link
Member

emyarod commented Apr 22, 2020

it looks like I'm not able to push to your branch because of permissions, but the steps I referenced above should fix the broken tests

@code-blooded-developer
Copy link
Contributor Author

@emyarod thank you for the suggestion. I had a different problem with my OS.

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix, looks good to me

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! Working as expected 👍 ✅

@asudoh asudoh merged commit 6e02f68 into carbon-design-system:master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support forward ref for TextInput.PasswordInput component
4 participants