Skip to content

Commit 551ce3d

Browse files
committed
fix(multiple): transform boolean attr (#32319)
(cherry picked from commit 36b8832)
1 parent e7f9ef3 commit 551ce3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aria/combobox/combobox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Combobox<V> {
109109
readonly disabled = input(false, {transform: booleanAttribute});
110110

111111
/** Whether the combobox is read-only. */
112-
readonly readonly = input(false);
112+
readonly readonly = input(false, {transform: booleanAttribute});
113113

114114
/** The value of the first matching item in the popup. */
115115
readonly firstMatch = input<V | undefined>(undefined);
@@ -121,7 +121,7 @@ export class Combobox<V> {
121121
// Or an "always expanded" option?
122122

123123
/** Whether the combobox popup should always be expanded, regardless of user interaction. */
124-
readonly alwaysExpanded = input(false);
124+
readonly alwaysExpanded = input(false, {transform: booleanAttribute});
125125

126126
/** Input element connected to the combobox, if any. */
127127
readonly inputElement = computed(() => this._pattern.inputs.inputEl());

src/aria/tree/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class Tree<V> {
158158
readonly textDirection = inject(Directionality).valueSignal;
159159

160160
/** Whether the tree is in navigation mode. */
161-
readonly nav = input(false);
161+
readonly nav = input(false, {transform: booleanAttribute});
162162

163163
/**
164164
* The `aria-current` type. It can be used in navigation trees to indicate the currently active item.

0 commit comments

Comments
 (0)