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(Table): allow passed in refs to be properly forwarded #4592

Merged
merged 2 commits into from
Oct 5, 2019

Conversation

DoctorHowser
Copy link
Contributor

#4194

Updates Table component to play nice with a passed ref.

...props
} = this.props;

...otherProps
Copy link
Member

Choose a reason for hiding this comment

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

just ...props i think... unless there’s a name collision

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It certainly could be. Mostly I was following a different example (https://github.com/react-bootstrap/react-bootstrap/pull/3992/files) that also had otherProps, and to at least delineate that it is other props than what is being used with this stuff.

Would require a change here, and a change on line 84.

Copy link
Member

Choose a reason for hiding this comment

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

let’s do that. the example there already has a props so we needed another name

Copy link
Member

@bpas247 bpas247 left a comment

Choose a reason for hiding this comment

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

looks awesome! thanks so much for doing this 😄

@mxschmitt mxschmitt changed the title Update Table to use forwardRef fix(Table): allow passed in refs to be properly forwarded Oct 5, 2019
@mxschmitt mxschmitt merged commit 0e10671 into react-bootstrap:master Oct 5, 2019
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.

None yet

4 participants