Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

use React.cloneElement API, fix this.children are multiple elments will crash bug. #11

Merged
merged 1 commit into from
Apr 29, 2015
Merged

Conversation

coffeedeveloper
Copy link
Contributor

if NavLink contain multiple elements will throw error.

<NavLink routeName="home">
     <i>yeah</i>
     <span>haha</span>
</NavLink>
//Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined

and React.addons.cloneWithProps is deprecated. Use React.cloneElement instead.

@jedireza
Copy link
Contributor

Thanks.

@mridgway
Copy link
Collaborator

Looks good to me. Thanks for the PR!

mridgway added a commit that referenced this pull request Apr 29, 2015
use React.cloneElement API, fix this.children are multiple elments will crash bug.
@mridgway mridgway merged commit 53a97a5 into YahooArchive:master Apr 29, 2015
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.09% when pulling ef1c5e0 on coffeedeveloper:master into 6da24f7 on yahoo:master.

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

Successfully merging this pull request may close these issues.

4 participants