react-autowhatever
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "react-autowhatever", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Accessible rendering layer for Autosuggest and Autocomplete components", | ||
@@ -5,0 +5,0 @@ "main": "dist/Autowhatever.js", |
@@ -121,8 +121,13 @@ import React, { Component, PropTypes } from 'react'; | ||
items.map((section, sectionIndex) => { | ||
const sectionTitle = renderSectionTitle(section); | ||
return shouldRenderSection(section) && ( | ||
<div key={sectionIndex} | ||
{...theme(sectionIndex, 'section-container')}> | ||
<div {...theme('section-title', 'section-title')}> | ||
{renderSectionTitle(section)} | ||
</div> | ||
{ | ||
sectionTitle && | ||
<div {...theme('section-title', 'section-title')}> | ||
{sectionTitle} | ||
</div> | ||
} | ||
<ul {...theme('section-items-container', 'section-items-container')}> | ||
@@ -129,0 +134,0 @@ {this.renderItemsList(theme, getSectionItems(section), sectionIndex)} |
52168
1290