summaryrefslogtreecommitdiff
path: root/app/client/common/select.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-26 15:08:02 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-26 15:08:02 +0200
commit577e2753bd7979badcaf23274bbb7327fa892512 (patch)
treecb16c0d9e715015f40bd95407fdb52d397a5277f /app/client/common/select.component.js
parent1fe65a7cdf28831c1e463177023312a3a1e39d02 (diff)
deploy bundle
Diffstat (limited to 'app/client/common/select.component.js')
-rw-r--r--app/client/common/select.component.js3
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>