react-select-multi
Advanced tools
Comparing version
{ | ||
"name": "react-select-multi", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "React Multiple-Select Component", | ||
@@ -14,2 +14,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"classnames": "^2.2.5", | ||
"react": "^15.4.2", | ||
@@ -16,0 +17,0 @@ "react-dom": "^15.4.2" |
import React, { PropTypes, Component } from 'react'; | ||
import classNames from 'classnames'; | ||
@@ -52,2 +53,7 @@ const propTypes = { | ||
const arrowStyles = { | ||
'om-icon-descending': !this.state.isOpen, | ||
'om-icon-ascending': this.state.isOpen, | ||
}; | ||
return ( | ||
@@ -64,2 +70,3 @@ <div className={`${namespace}-select-multi__wrapper`}> | ||
{this.state.options.filter(o => o.selected).map(o => o.display).join(', ')} | ||
<span className={classNames(arrowStyles)} /> | ||
</div> | ||
@@ -66,0 +73,0 @@ |
Sorry, the diff of this file is not supported yet
140889
0.29%91
7.06%3
50%+ Added
+ Added