Skip to content

Commit 734870b

Browse files
committed
feat(aria/combobox): adds disabled binding to aria combobox.ts
Adds disabled binding to aria combobox.ts to have disabled attribute be automatically added as aria-disabled on the parent div and disabled on the input of combobox.
1 parent 5396c43 commit 734870b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/aria/combobox/combobox.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {toSignal} from '@angular/core/rxjs-interop';
3737
},
3838
],
3939
host: {
40+
'[attr.aria-disabled]': 'disabled()',
4041
'[attr.data-expanded]': 'pattern.expanded()',
4142
'(input)': 'pattern.onInput($event)',
4243
'(keydown)': 'pattern.onKeydown($event)',
@@ -119,6 +120,7 @@ export class Combobox<V> {
119120
'[attr.aria-controls]': 'combobox.pattern.popupId()',
120121
'[attr.aria-haspopup]': 'combobox.pattern.hasPopup()',
121122
'[attr.aria-autocomplete]': 'combobox.pattern.autocomplete()',
123+
'[disabled]': 'combobox.disabled()',
122124
},
123125
})
124126
export class ComboboxInput {

0 commit comments

Comments
 (0)