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

Tooltip inner ref #1090

Merged
merged 6 commits into from
Jun 25, 2018
Merged

Conversation

juanmaguitar
Copy link
Contributor

Adding a innerRef prop to the div wrapping the Tooltip so it can accesed from the outside
This PR solves the issue #1089

…p-innerRef

* 'master' of github.com:reactstrap/reactstrap:
  fix(tooltip): fixed tooltip not disappearing on mobile (reactstrap#1083)
src/Tooltip.js Outdated
@@ -34,6 +34,7 @@ const propTypes = {
PropTypes.string,
PropTypes.number
]),
innerRef: PropTypes.object,
Copy link
Member

Choose a reason for hiding this comment

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

Technically this can still be a string or a function as well as the new createRef object.

Also need to document the prop (at the very least add it to the props on the docs for this component)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I've changed the propType definition and added the proper explanation in the docs

src/Tooltip.js Outdated
innerRef: PropTypes.object,
innerRef: PropTypes.oneOfType([
PropTypes.func,
PropTypes.string
Copy link
Member

Choose a reason for hiding this comment

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

PropTypes.object as well, I was merely stating that it can be these 2 in addition to the one previously specified.

@TheSharpieOne TheSharpieOne merged commit 214da8c into reactstrap:master Jun 25, 2018
@juanmaguitar juanmaguitar mentioned this pull request Jun 28, 2018
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

2 participants