disallow disabling core plugins - fixes #1990

This commit is contained in:
Eugene Pankov
2021-03-13 21:25:25 +01:00
parent c290633e7e
commit be43f8b50d
4 changed files with 13 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
})
export class CheckboxComponent implements ControlValueAccessor {
@HostBinding('class.active') @Input() model: boolean
@Input() disabled: boolean
@HostBinding('class.disabled') @Input() disabled: boolean
@Input() text: string
private changed = new Array<(val: boolean) => void>()

View File

@@ -3,7 +3,6 @@
$toggle-size: 18px;
$height: 30px;
$padding: 2px;
cursor: pointer;
display: inline-flex;
overflow: visible;
border-radius: 3px;
@@ -16,8 +15,11 @@
padding-left: 10px;
margin-left: -10px;
&[disabled] {
&.disabled {
opacity: 0.5;
}
* {
cursor: pointer;
}
}