Skip to content

Commit d09d90d

Browse files
committed
chore(overlay): simplify null check
1 parent 6124cec commit d09d90d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • projects/igniteui-angular/core/src/services/overlay

projects/igniteui-angular/core/src/services/overlay/overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export class IgxOverlayService implements OnDestroy {
422422
const closeAnimation = info.settings.positionStrategy.settings.closeAnimation;
423423
// Show the overlay using Popover API BEFORE positioning
424424
// This ensures the element is in the top layer when position calculations happen
425-
if (info.wrapperElement && info.wrapperElement.isConnected && typeof info.wrapperElement.showPopover === 'function') {
425+
if (info.wrapperElement?.isConnected && typeof info.wrapperElement.showPopover === 'function') {
426426
try {
427427
info.wrapperElement.showPopover();
428428
} catch (_) {

0 commit comments

Comments
 (0)