File tree 1 file changed +10
-1
lines changed
projects/igniteui-angular/src/lib/grids
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3162,7 +3162,9 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3162
3162
*/
3163
3163
public hideOverlays ( ) {
3164
3164
this . overlayIDs . forEach ( overlayID => {
3165
- this . overlayService . detach ( overlayID ) ;
3165
+ if ( this . overlayService . getOverlayById ( overlayID ) ?. visible ) {
3166
+ this . overlayService . hide ( overlayID ) ;
3167
+ }
3166
3168
this . nativeElement . focus ( ) ;
3167
3169
} ) ;
3168
3170
}
@@ -3635,6 +3637,13 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3635
3637
this . overlayService . detach ( this . _advancedFilteringOverlayId ) ;
3636
3638
}
3637
3639
3640
+ this . overlayIDs . forEach ( overlayID => {
3641
+ if ( this . overlayService . getOverlayById ( overlayID ) && ! this . overlayService . getOverlayById ( overlayID ) . detached ) {
3642
+ this . overlayService . detach ( overlayID ) ;
3643
+ }
3644
+ this . nativeElement . focus ( ) ;
3645
+ } ) ;
3646
+
3638
3647
this . zone . runOutsideAngular ( ( ) => {
3639
3648
this . observer . disconnect ( ) ;
3640
3649
this . verticalScrollContainer ?. getScroll ( ) ?. removeEventListener ( 'scroll' , this . verticalScrollHandler ) ;
You can’t perform that action at this time.
0 commit comments