summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a38f3d6)
Issue-ID: AAI-668
Change-Id: I61ce8ab7f042a8eff8ccd5dee74c8311ad16b65b
Signed-off-by: Steve Thomas <steventh@amdocs.com>
Signed-off-by: steventh <steve.thomas@amdocs.com>
"topojson": "^2.2.0",
"uuid-js": "^0.7.5",
"validator": "^4.3.0",
"topojson": "^2.2.0",
"uuid-js": "^0.7.5",
"validator": "^4.3.0",
- "vertical-filter-bar": "0.0.4"
+ "vertical-filter-bar": "1.0.4"
},
"devDependencies": {
"babel-core": "^6.9.1",
},
"devDependencies": {
"babel-core": "^6.9.1",
*/
import React, {Component} from 'react';
import Select from 'react-select';
*/
import React, {Component} from 'react';
import Select from 'react-select';
+import 'react-select/dist/react-select.css';
class SelectInput extends Component {
class SelectInput extends Component {
render() {
let {label, value, ...other} = this.props;
return (
render() {
let {label, value, ...other} = this.props;
return (
getValue() {
return this.inputValue && this.inputValue.length ? this.inputValue : '';
}
getValue() {
return this.inputValue && this.inputValue.length ? this.inputValue : '';
}
onSelectChanged(value) {
this.props.onMultiSelectChanged(value);
}
onSelectChanged(value) {
this.props.onMultiSelectChanged(value);
}
componentDidMount() {
let {value} = this.props;
this.inputValue = value ? value : [];
}
componentDidMount() {
let {value} = this.props;
this.inputValue = value ? value : [];
}
componentDidUpdate() {
if (this.inputValue !== this.props.value) {
this.inputValue = this.props.value;
componentDidUpdate() {
if (this.inputValue !== this.props.value) {
this.inputValue = this.props.value;
<head>
<meta charset="utf-8">
<title>A&AI UI</title>
<head>
<meta charset="utf-8">
<title>A&AI UI</title>
- <link rel="stylesheet" href="https://unpkg.com/react-select/dist/react-select.css">