diff options
Diffstat (limited to 'app/client/common/select.component.js')
| -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> |
