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] TypeError: Cannot read property 'setAttribute' of null #12371

Closed
Mangatt opened this issue Aug 2, 2018 · 2 comments
Closed

[Tooltip] TypeError: Cannot read property 'setAttribute' of null #12371

Mangatt opened this issue Aug 2, 2018 · 2 comments
Labels
bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module!

Comments

@Mangatt
Copy link
Contributor

Mangatt commented Aug 2, 2018

Hi, I've come across strange behavior in tooltip. Following code

<Tooltip title="Title">
  <Input value="" autoFocus />
</Tooltip>

throws TypeError: Cannot read property 'setAttribute' of null in [Tooltip]. When you remove autoFocus, everything works fine.

Strangely, this is the case even when [Input] is wrapped in <div />. I'm really not sure why exacly is that, but adding if(!this.childrenRef) return; to line 162 should help.

@oliviertassinari
Copy link
Member

Your issue has been closed because it does not conform to our issue requirements.
Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

@oliviertassinari oliviertassinari added the status: waiting for author Issue with insufficient information label Aug 2, 2018
@Mangatt
Copy link
Contributor Author

Mangatt commented Aug 2, 2018

There you go: live example

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module! and removed status: waiting for author Issue with insufficient information labels Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants