mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
implemented graphic disable select input functionality
This commit is contained in:
@@ -16,7 +16,7 @@ class DropDown extends React.Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
const { options, optionValues, preselectedOption, className, disabled } = this.props;
|
const { options, optionValues, preselectedOption, className, disabled } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className={classNames(className, "select")}>
|
<div className={classNames(className, "select", disabled ? "disabled": "")}>
|
||||||
<select
|
<select
|
||||||
value={preselectedOption ? preselectedOption : ""}
|
value={preselectedOption ? preselectedOption : ""}
|
||||||
onChange={this.change}
|
onChange={this.change}
|
||||||
|
|||||||
@@ -255,16 +255,9 @@ form .field:not(.is-grouped) {
|
|||||||
.select,
|
.select,
|
||||||
.select:hover {
|
.select:hover {
|
||||||
&:not(.is-multiple):not(.is-loading) {
|
&:not(.is-multiple):not(.is-loading) {
|
||||||
> select[disabled] + &::after {
|
&.disabled::after {
|
||||||
border :1px solid red;
|
|
||||||
border-color: #7a7a7a;
|
border-color: #7a7a7a;
|
||||||
}
|
}
|
||||||
&::after {
|
|
||||||
border-top: 1px solid blue;
|
|
||||||
}
|
|
||||||
> select[disabled] {
|
|
||||||
border: 1px solid yellow;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user