Skip to content

Commit 7aa12d8

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/aria/grid/grid.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class GridRow {
202202
private readonly _grid = inject(Grid);
203203

204204
/** The parent grid UI pattern. */
205-
readonly grid = computed(() => this._grid._pattern);
205+
readonly _gridPattern = computed(() => this._grid._pattern);
206206

207207
/** The index of this row within the grid. */
208208
readonly rowIndex = input<number>();
@@ -211,6 +211,7 @@ export class GridRow {
211211
readonly _pattern = new GridRowPattern({
212212
...this,
213213
cells: this._cellPatterns,
214+
grid: this._gridPattern,
214215
});
215216
}
216217

@@ -318,7 +319,7 @@ export class GridCell {
318319
/** The UI pattern for the grid cell. */
319320
readonly _pattern = new GridCellPattern({
320321
...this,
321-
grid: this._row.grid,
322+
grid: this._row._gridPattern,
322323
row: () => this._row._pattern,
323324
widgets: this._widgetPatterns,
324325
getWidget: e => this._getWidget(e),

0 commit comments

Comments
 (0)