Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: spread should not traverse children elements #245

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

Merged
gajus merged 1 commit into gajus:master from AlbertLucianto:fix/spread-traverse
Mar 22, 2019

Conversation

Copy link
Contributor

@AlbertLucianto AlbertLucianto commented Mar 22, 2019

Should fix #244

Sorry for the bug. When traversing the spread attributes, an element traverses spread attributes in children elements as well. This fix simply changes the traversal into a simple loop. I also add a test case for this one.

@gajus gajus merged commit 4a47f35 into gajus:master Mar 22, 2019
Copy link
Owner

gajus commented Mar 22, 2019

🎉 This PR is included in version 5.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

tyler-dot-earth commented Apr 3, 2019
edited
Loading

EDIT: errr, might've had a bug in my own code. Sorry for the noise :( 👎 Thanks again for the work on this feature, it's awesome ❤️

(削除) @AlbertLucianto Wonderful work on #243! I understand the reasoning behind #245 here as well, though it would be nice if children traversal worked in the same file when spreading on children, like such: (削除ここまで)

 return (
 <div
 {...wrapperProps}
 styleName="wrapper"
 >
 <SingleLineInput
 {...otherProps}
 styleName="input"
 />
 <div styleName="icon-wrapper">
 <Icon icon="search" />
 </div>
 </div>
 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

className applied to incorrect nodes in 5.2.2

AltStyle によって変換されたページ (->オリジナル) /