File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
projects/igniteui-angular/grids/grid/src Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,27 @@ describe('IgxGrid - multi-column headers #grid', () => {
203203 }
204204 } ) ) ;
205205
206+ it ( 'The ariaHidden getter should not throw when the grid has no active node (#16517)' , fakeAsync ( ( ) => {
207+ fixture = TestBed . createComponent ( BlueWhaleGridComponent ) as ComponentFixture < BlueWhaleGridComponent > ;
208+ tick ( ) ;
209+ fixture . detectChanges ( ) ;
210+
211+ // The grid active node will be null if there is no data and the body is focused
212+ grid = fixture . componentInstance . grid ;
213+ grid . data = [ ] ;
214+
215+ tick ( ) ;
216+ fixture . detectChanges ( ) ;
217+
218+ const gridContent = GridFunctions . getGridContent ( fixture ) ;
219+
220+ expect ( async ( ) => {
221+ gridContent . triggerEventHandler ( 'focus' , null ) ;
222+ await wait ( 400 ) ;
223+ fixture . detectChanges ( ) ;
224+ } ) . not . toThrow ( ) ;
225+ } ) ) ;
226+
206227 it ( 'Should render dynamic column group header correctly (#12165).' , ( ) => {
207228 fixture = TestBed . createComponent ( BlueWhaleGridComponent ) as ComponentFixture < BlueWhaleGridComponent > ;
208229 ( fixture as ComponentFixture < BlueWhaleGridComponent > ) . componentInstance . firstGroupRepeats = 1 ;
You can’t perform that action at this time.
0 commit comments