Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

fix(list): minification-safe element type comparison #509

Merged
merged 3 commits into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sudo: required
branches:
only:
- master
- rc0.7.x
- rc0.8.0

matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion packages/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class List extends Component {
}

renderChild = (child) => {
if (child.type.name === 'ListItem') {
if (child.type === ListItem) {
return this.renderListItem(child, this.listItemCount++);
} else {
return child;
Expand Down