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

fix(list): renders a list with children which is not DOM #674

Merged
merged 4 commits into from Feb 14, 2019
Merged

fix(list): renders a list with children which is not DOM #674

merged 4 commits into from Feb 14, 2019

Conversation

ghost
Copy link

@ghost ghost commented Feb 13, 2019

Now <List />checks children's type using isListItem.
If parameter is null/undefined, an error occurs.
So I add code that checks element's existence.

p.s. I add one dependency(@material/radio) because there is error "cannot find module" when running test code. If you do not need it, I will revert it.

@ghost
Copy link
Author

ghost commented Feb 13, 2019

related to #663

@ghost
Copy link
Author

ghost commented Feb 13, 2019

I signed it!

@codecov-io
Copy link

codecov-io commented Feb 13, 2019

Codecov Report

Merging #674 into rc0.10.0 will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           rc0.10.0     #674      +/-   ##
============================================
+ Coverage     94.81%   94.88%   +0.07%     
============================================
  Files            68       68              
  Lines          2852     2852              
  Branches        431      432       +1     
============================================
+ Hits           2704     2706       +2     
+ Misses           51       50       -1     
+ Partials         97       96       -1
Impacted Files Coverage Δ
packages/list/index.tsx 93.46% <100%> (+1.3%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 457afee...8a17b20. Read the comment docs.

test/unit/list/index.test.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks :)

@moog16 moog16 merged commit 02da75c into material-components:rc0.10.0 Feb 14, 2019
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