1
0
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:
Thomas Rittson
2023-01-11 07:35:52 +10:00
committed by GitHub
parent d08f93774b
commit 74140e99d9
3 changed files with 10 additions and 6 deletions

View File

@@ -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;
}