Skip to content

undefined class if both className and styleName are JSX expressions #20

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

Closed
gewfy opened this issue Dec 20, 2016 · 1 comment
Closed
Labels

Comments

@gewfy
Copy link

gewfy commented Dec 20, 2016

Hi!
I want the parent component to be able to set classes on it's child components. Therefore I need the className to be appended at runtime. But this:

<div className={this.props.className} styleName={"foo"}>

Renders:

<div class="undefined foo___1ZSNk">

Even if the parent component passes className to the child component.

Thank you!

@gajus gajus added the bug label Jan 6, 2017
@gajus gajus closed this as completed in 0762081 Jan 6, 2017
@gajus
Copy link
Owner

gajus commented Jan 6, 2017

Fixed. Thank you for reporting.

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

No branches or pull requests

2 participants