mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
Let a single radio button option be disabled (#4419)
This commit is contained in:
@@ -11,6 +11,7 @@ let nextId = 0;
|
||||
export class RadioButtonComponent {
|
||||
@HostBinding("attr.id") @Input() id = `bit-radio-button-${nextId++}`;
|
||||
@Input() value: unknown;
|
||||
@Input() disabled = false;
|
||||
|
||||
constructor(private groupComponent: RadioGroupComponent) {}
|
||||
|
||||
@@ -26,7 +27,7 @@ export class RadioButtonComponent {
|
||||
return this.groupComponent.selected === this.value;
|
||||
}
|
||||
|
||||
get disabled() {
|
||||
get groupDisabled() {
|
||||
return this.groupComponent.disabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user