Skip to content

bug: React - IonModal - showBackdrop: false, backdropDismiss: false; no longer allows user to interact with background content. #24797

@nextgen-jp

Description

@nextgen-jp

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

IonModal Options:
showBackdrop: false,
backdropDismiss: false

Does not allow the user to interact with the background content as it did in 6.0.5 and prior.

Expected Behavior

Should allow the user to interact with the background content as it did in 6.0.5 and prior.

Steps to Reproduce

IonModal
present({
swipeToClose: false,
cssClass: "rounded",
showBackdrop: false,
backdropDismiss: false,
backdropBreakpoint: 1, //not necessary but added during testing
initialBreakpoint: 0.5,
breakpoints: [0, 0.5, 1],
onDidDismiss: handleDismiss,
});

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 6.0.8

Capacitor:

Capacitor CLI : 3.4.1
@capacitor/android : 3.4.1
@capacitor/core : 3.4.1
@capacitor/ios : 3.4.1

Utility:

cordova-res (update available: 0.15.4) : 0.15.3
native-run : 1.5.0

System:

NodeJS : v17.4.0 (/usr/local/Cellar/node/17.4.0/bin/node)
npm : 8.3.1
OS : macOS Big Sur

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions