From e055ca78a53e0f0b8f4b3a351717a8987d6706eb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 01:55:55 +0200 Subject: params should pass thru.. --- app/client/common/select.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/client/common') diff --git a/app/client/common/select.component.js b/app/client/common/select.component.js index d08ae60..c7fa93c 100644 --- a/app/client/common/select.component.js +++ b/app/client/common/select.component.js @@ -13,7 +13,7 @@ class Select extends Component { this.props.onChange && this.props.onChange(this.props.name, new_value) } render() { - const currentValue = this.props.opt[this.props.name] + const currentValue = this.props.live ? this.props.opt[this.props.name] : this.props.value let lastValue const options = (this.props.options || []).map((key,i) => { let name, value -- cgit v1.2.3-70-g09d2