Skip to content

Commit 9310d0f

Browse files
committed
Merge remote-tracking branch 'upstream/cdk-tree-revamp' into cdk-tree-revamp-merge2
2 parents ea41d88 + e20bac8 commit 9310d0f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/material/tree/node.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ function isLegacyTreeKeyManager<T extends TreeKeyManagerItem>(
5757
},
5858
})
5959
export class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit, OnDestroy {
60-
/** Tabindex of the node. */
60+
/**
61+
* The tabindex of the tree node.
62+
*
63+
* @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.
64+
* Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into
65+
* an unexpected state. Tabindex to be removed in a future version.
66+
* @breaking-change 19.0.0 Remove this attribute.
67+
*/
68+
6169
@Input({
6270
transform: (value: unknown) => (value == null ? 0 : numberAttribute(value)),
6371
})
@@ -70,15 +78,6 @@ export class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit,
7078
}
7179
private _tabIndex: number;
7280

73-
/**
74-
* The tabindex of the tree node.
75-
*
76-
* @deprecated By default MatTreeNode manages focus using TreeKeyManager instead of tabIndex.
77-
* Recommend to avoid setting tabIndex directly to prevent TreeKeyManager form getting into
78-
* an unexpected state. Tabindex to be removed in a future version.
79-
* @breaking-change 19.0.0 Remove this attribute.
80-
*/
81-
8281
/**
8382
* The default tabindex of the tree node.
8483
*

tools/public_api_guard/material/tree.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class MatTreeNode<T, K = T> extends CdkTreeNode<T, K> implements OnInit,
132132
ngOnDestroy(): void;
133133
// (undocumented)
134134
ngOnInit(): void;
135+
// @deprecated
135136
get tabIndex(): number;
136137
set tabIndex(value: number);
137138
// (undocumented)

0 commit comments

Comments
 (0)