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

Add support for callback ref and ref hook #4093

Merged
merged 11 commits into from
May 19, 2020

Conversation

tanmoyopenroot
Copy link
Contributor

@tanmoyopenroot tanmoyopenroot commented Apr 25, 2020

Fixes #4064

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Add support for callback ref and ref hook for Button, Anchor Button and InputGroup

Reviewers should focus on:

Typing for the props(elementRef, inputRef)

@tanmoyopenroot
Copy link
Contributor Author

tanmoyopenroot commented Apr 26, 2020

@adidahiya Currently test-react-15 is failing as hooks are not available.
Is there any way we can detect react version to skip those test?

packages/core/src/components/button/abstractButton.tsx Outdated Show resolved Hide resolved
packages/core/test/buttons/buttonTests.tsx Outdated Show resolved Hide resolved
@adidahiya
Copy link
Contributor

docs preview

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

overall this works, there are some stylistic refactors I'd like to do on top of this to make the implementation less verbose, but I'll merge and do that on develop to get this moving along

@adidahiya
Copy link
Contributor

thanks @tanmoyopenroot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[core] Button and InputGroup ref prop types not assignable with React hooks
2 participants