armstrong-react
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -8,2 +8,4 @@ import * as React from "react"; | ||
className?: string; | ||
style?: React.CSSProperties; | ||
prefixElement?: JSX.Element; | ||
} | ||
@@ -10,0 +12,0 @@ export interface IAutoCompleteInputProps extends IFormInputProps<AutoCompleteInput> { |
@@ -324,3 +324,5 @@ "use strict"; | ||
this.state.filteredOptions && this.state.filteredOptions.map(function (o, i) { | ||
return React.createElement("div", { "data-index": i, key: "dd-item-" + i, className: "dd-list-item" + (o.className ? " " + o.className : "") + (i === _this.state.selectedIndex ? " selected" : "") + ((_this.props.multiSelect && _.some(_this.state.selectedValue, function (ddo) { return ddo.id === o.id; })) ? " in-selected-list" : ""), onClick: function () { return _this.handleSelection(o); } }, o.name); | ||
return React.createElement("div", { "data-index": i, key: "dd-item-" + i, style: o.style, className: "dd-list-item" + (o.className ? " " + o.className : "") + (i === _this.state.selectedIndex ? " selected" : "") + ((_this.props.multiSelect && _.some(_this.state.selectedValue, function (ddo) { return ddo.id === o.id; })) ? " in-selected-list" : ""), onClick: function () { return _this.handleSelection(o); } }, | ||
o.prefixElement, | ||
o.name); | ||
}), | ||
@@ -327,0 +329,0 @@ this.state.filteredOptions.length === 0 && this.state.query && React.createElement("div", { className: "dd-list-item-no-select" }, getNoResults(this.state.query, this.props.noResultsMessage))))), |
{ | ||
"name": "armstrong-react", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
768698
15172