react-autowhatever
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -132,3 +132,3 @@ 'use strict'; | ||
var id = _props4.id; | ||
var isMultiSection = _props4.isMultiSection; | ||
var multiSection = _props4.multiSection; | ||
var items = _props4.items; | ||
@@ -156,4 +156,4 @@ var focusedSectionIndex = _props4.focusedSectionIndex; | ||
_react2['default'].createElement('input', inputProps), | ||
isOpen && isMultiSection && this.renderSections(theme), | ||
isOpen && !isMultiSection && this.renderItems(theme) | ||
isOpen && multiSection && this.renderSections(theme), | ||
isOpen && !multiSection && this.renderItems(theme) | ||
); | ||
@@ -165,3 +165,3 @@ } | ||
id: _react.PropTypes.string, // Used in aria-* attributes. If multiple Autowhatever's are rendered on a page, they must have unique ids. | ||
isMultiSection: _react.PropTypes.bool, // Indicates whether a multi section list of items should be rendered. | ||
multiSection: _react.PropTypes.bool, // Indicates whether a multi section layout should be rendered. | ||
items: _react.PropTypes.array.isRequired, // Array of items or sections to render. | ||
@@ -182,3 +182,3 @@ renderItem: _react.PropTypes.func, // This function renders a single item. | ||
id: '1', | ||
isMultiSection: false, | ||
multiSection: false, | ||
shouldRenderSection: function shouldRenderSection() { | ||
@@ -185,0 +185,0 @@ return true; |
{ | ||
"name": "react-autowhatever", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Accessible rendering layer for Autosuggest and Autocomplete components", | ||
@@ -5,0 +5,0 @@ "main": "dist/Autowhatever.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36821