summaryrefslogtreecommitdiffstats
path: root/src/generic-components
diff options
context:
space:
mode:
authorSteve Thomas <steventh@amdocs.com>2018-01-17 12:24:27 -0500
committersteventh <steve.thomas@amdocs.com>2018-01-17 12:30:53 -0500
commitfd2a6b124c62fe186364efd8eb28409ce7507902 (patch)
treee0084dd88de551f1f4f920ca615bbf39655b29da /src/generic-components
parenta38f3d6bb17a478d08016e49d6c2a667ac483d4a (diff)
fixing styling for filter bar
Issue-ID: AAI-668 Change-Id: I61ce8ab7f042a8eff8ccd5dee74c8311ad16b65b Signed-off-by: Steve Thomas <steventh@amdocs.com> Signed-off-by: steventh <steve.thomas@amdocs.com>
Diffstat (limited to 'src/generic-components')
-rw-r--r--src/generic-components/input/SelectInput.jsx13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/generic-components/input/SelectInput.jsx b/src/generic-components/input/SelectInput.jsx
index 13a1895..557f4cb 100644
--- a/src/generic-components/input/SelectInput.jsx
+++ b/src/generic-components/input/SelectInput.jsx
@@ -36,11 +36,12 @@
*/
import React, {Component} from 'react';
import Select from 'react-select';
+import 'react-select/dist/react-select.css';
class SelectInput extends Component {
-
+
inputValue = [];
-
+
render() {
let {label, value, ...other} = this.props;
return (
@@ -54,20 +55,20 @@ class SelectInput extends Component {
</div>
);
}
-
+
getValue() {
return this.inputValue && this.inputValue.length ? this.inputValue : '';
}
-
+
onSelectChanged(value) {
this.props.onMultiSelectChanged(value);
}
-
+
componentDidMount() {
let {value} = this.props;
this.inputValue = value ? value : [];
}
-
+
componentDidUpdate() {
if (this.inputValue !== this.props.value) {
this.inputValue = this.props.value;