implemented graphic disable select input functionality

This commit is contained in:
Florian Scholdei
2019-04-18 17:19:55 +02:00
parent 8c215b44c2
commit a0f4f3dbe2
2 changed files with 2 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class DropDown extends React.Component<Props> {
render() {
const { options, optionValues, preselectedOption, className, disabled } = this.props;
return (
<div className={classNames(className, "select")}>
<div className={classNames(className, "select", disabled ? "disabled": "")}>
<select
value={preselectedOption ? preselectedOption : ""}
onChange={this.change}