Prevent coercion of zero to false

pull/10616/head
Jared Scheib 2017-08-07 11:06:38 -07:00
parent 1af40c9ac8
commit 428fc017b8
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class OneOrAny extends Component {
return e => {
const rightValue = e.target.value.trim()
this.setState({rightValue}, () => {
if (!this.state.rightValue) {
if (rightValue === '') {
// this helps ensure that when the toggle is clicked, if the rightValue
// input's blur event also fires, that only the expected behavior happens
setTimeout(() => {