From a8c77575869fcdf81459af0cabb12b25737acfbc Mon Sep 17 00:00:00 2001 From: Marie Godon Date: Wed, 18 Oct 2017 20:47:16 -0400 Subject: [PATCH] do not show clear button if value is an empty string --- src/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index 80e5db0aca..afa39ac2e9 100644 --- a/src/Select.js +++ b/src/Select.js @@ -812,7 +812,7 @@ class Select extends React.Component { } renderClear () { - if (!this.props.clearable || this.props.value === undefined || this.props.value === null || this.props.multi && !this.props.value.length || this.props.disabled || this.props.isLoading) return; + if (!this.props.clearable || this.props.value === undefined || this.props.value === null || this.props.value === '' || this.props.multi && !this.props.value.length || this.props.disabled || this.props.isLoading) return; const clear = this.props.clearRenderer(); return (