Hide clear icon in autocomplete if autocomplete is disabled

dev 2.0.0-beta.24
Vitaliy Filippov 2019-06-28 16:00:16 +03:00
parent 8690e3a709
commit e745e3332e
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ const factory = (Chip, Input) => {
const outerClassName = classnames(theme.autocomplete, {
[theme.focus]: this.state.focus,
}, className);
const withClear = allowClear && (multiple
const withClear = allowClear && !disabled && (multiple
? value && Object.keys(value).length > 0
: value != null);
return (

View File

@ -2,7 +2,7 @@
"name": "react-toolbox",
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
"homepage": "http://www.react-toolbox.io",
"version": "2.0.0-beta.23",
"version": "2.0.0-beta.24",
"main": "./lib",
"module": "./components",
"author": {