Skip to content

Commit 1699756

Browse files
committed
refactor(aria/combobox): underscore pattern props only for internal usage
1 parent ab54834 commit 1699756

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/aria/combobox/combobox.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class Combobox<V> {
138138
inputValue: signal(''),
139139
inputEl: signal(undefined),
140140
containerEl: () => this._elementRef.nativeElement,
141-
popupControls: () => this.popup()?.controls(),
141+
popupControls: () => this.popup()?._controls(),
142142
});
143143

144144
constructor() {
@@ -231,7 +231,7 @@ export class ComboboxInput {
231231
);
232232
this.combobox._pattern.inputs.inputValue = this.value;
233233

234-
const controls = this.combobox.popup()?.controls();
234+
const controls = this.combobox.popup()?._controls();
235235
if (controls instanceof ComboboxDialogPattern) {
236236
return;
237237
}
@@ -301,7 +301,7 @@ export class ComboboxPopup<V> {
301301
readonly combobox = inject<Combobox<V>>(Combobox, {optional: true});
302302

303303
/** The popup controls exposed to the combobox. */
304-
readonly controls = signal<
304+
readonly _controls = signal<
305305
| ComboboxListboxControls<any, V>
306306
| ComboboxTreeControls<any, V>
307307
| ComboboxDialogPattern
@@ -359,7 +359,7 @@ export class ComboboxDialog {
359359
});
360360

361361
if (this._popup) {
362-
this._popup.controls.set(this._pattern);
362+
this._popup._controls.set(this._pattern);
363363
}
364364

365365
afterRenderEffect(() => {

src/aria/listbox/listbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class Listbox<V> {
154154
: new ListboxPattern<V>(inputs);
155155

156156
if (this._popup) {
157-
this._popup.controls.set(this._pattern as ComboboxListboxPattern<V>);
157+
this._popup._controls.set(this._pattern as ComboboxListboxPattern<V>);
158158
}
159159

160160
afterRenderEffect(() => {

src/aria/tree/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class Tree<V> {
190190
: new TreePattern<V>(inputs);
191191

192192
if (this._popup?.combobox) {
193-
this._popup?.controls?.set(this._pattern as ComboboxTreePattern<V>);
193+
this._popup?._controls?.set(this._pattern as ComboboxTreePattern<V>);
194194
}
195195

196196
afterRenderEffect(() => {

0 commit comments

Comments
 (0)