diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 15:08:02 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 15:08:02 +0200 |
| commit | 577e2753bd7979badcaf23274bbb7327fa892512 (patch) | |
| tree | cb16c0d9e715015f40bd95407fdb52d397a5277f /app/client/common | |
| parent | 1fe65a7cdf28831c1e463177023312a3a1e39d02 (diff) | |
deploy bundle
Diffstat (limited to 'app/client/common')
| -rw-r--r-- | app/client/common/select.component.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/client/common/select.component.js b/app/client/common/select.component.js index 0a48dce..334d95a 100644 --- a/app/client/common/select.component.js +++ b/app/client/common/select.component.js @@ -10,6 +10,7 @@ class Select extends Component { handleChange(e){ clearTimeout(this.timeout) let new_value = e.target.value + if (new_value === 'PLACEHOLDER') return this.props.onChange && this.props.onChange(this.props.name, new_value) } render() { @@ -50,7 +51,7 @@ class Select extends Component { onChange={this.handleChange} value={currentValue || lastValue} > - {this.props.placeholder && <option value=''>{this.props.placeholder}</option>} + {this.props.placeholder && <option value="PLACEHOLDER">{this.props.placeholder}</option>} {options} </select> </label> |
