mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(table): remove dev warning (#5380)
This commit is contained in:
committed by
tinayuangao
parent
9fe62f9d93
commit
e3a2f30e57
@@ -169,13 +169,6 @@ export class CdkTable<T> implements CollectionViewer {
|
||||
elementRef: ElementRef,
|
||||
renderer: Renderer2,
|
||||
@Attribute('role') role: string) {
|
||||
// Show the stability warning of the data-table only if it doesn't run inside of jasmine.
|
||||
// This is just temporary and should reduce warnings when running the tests.
|
||||
if (!(typeof window !== 'undefined' && window['jasmine'])) {
|
||||
console.warn('The data table is still in active development ' +
|
||||
'and should be considered unstable.');
|
||||
}
|
||||
|
||||
if (!role) {
|
||||
renderer.setAttribute(elementRef.nativeElement, 'role', 'grid');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user