@@ -45,10 +45,10 @@ type OverlayWithFocusTrapProps = HTMLIonOverlayElement & {
4545} ;
4646
4747/**
48- * Determines if the overlay's backdrop is always active (no background interaction).
48+ * Determines if the overlay's backdrop is always blocking (no background interaction).
4949 * Returns false if showBackdrop=false or backdropBreakpoint > 0.
5050 */
51- const isBackdropAlwaysActive = ( el : OverlayWithFocusTrapProps ) : boolean => {
51+ const isBackdropAlwaysBlocking = ( el : OverlayWithFocusTrapProps ) : boolean => {
5252 return el . showBackdrop !== false && ! ( ( el . backdropBreakpoint ?? 0 ) > 0 ) ;
5353} ;
5454
@@ -555,7 +555,7 @@ export const present = async <OverlayPresentOptions>(
555555 */
556556 const overlayEl = overlay . el as OverlayWithFocusTrapProps ;
557557 const shouldTrapFocus = overlayEl . tagName !== 'ION-TOAST' && overlayEl . focusTrap !== false ;
558- const shouldLockRoot = shouldTrapFocus && isBackdropAlwaysActive ( overlayEl ) ;
558+ const shouldLockRoot = shouldTrapFocus && isBackdropAlwaysBlocking ( overlayEl ) ;
559559
560560 overlay . presented = true ;
561561 overlay . willPresent . emit ( ) ;
@@ -693,11 +693,11 @@ export const dismiss = async <OverlayDismissOptions>(
693693 */
694694 const overlaysLockingRoot = presentedOverlays . filter ( ( o ) => {
695695 const el = o as OverlayWithFocusTrapProps ;
696- return el . tagName !== 'ION-TOAST' && el . focusTrap !== false && isBackdropAlwaysActive ( el ) ;
696+ return el . tagName !== 'ION-TOAST' && el . focusTrap !== false && isBackdropAlwaysBlocking ( el ) ;
697697 } ) ;
698698 const overlayEl = overlay . el as OverlayWithFocusTrapProps ;
699699 const locksRoot =
700- overlayEl . tagName !== 'ION-TOAST' && overlayEl . focusTrap !== false && isBackdropAlwaysActive ( overlayEl ) ;
700+ overlayEl . tagName !== 'ION-TOAST' && overlayEl . focusTrap !== false && isBackdropAlwaysBlocking ( overlayEl ) ;
701701
702702 /**
703703 * If this is the last visible overlay that is trapping focus
0 commit comments