Skip to content

bug(ion-modal): input inside mat-menu non selectable #30564

@rbalet

Description

@rbalet

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Having the following make the input not selectable

  • input inside a mat-menu inside a `ion-modal

Expected Behavior

Being able to select the input field

Steps to Reproduce

  1. Clone the project (Code Reproduction URL)
  2. npm i
  3. ionic s
  4. Click on the blue button (open the modal)
  5. Click on the flag
  6. Try to select the search input field

Code Reproduction URL

https://github.com/rbalet/ion-modal-mat-menu-error/tree/main

Ionic Info

Ionic:

Ionic CLI : 7.2.1 (/Users/raphaelbalet/.nvm/versions/node/v22.17.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.6.5
@angular-devkit/build-angular : 20.1.1
@angular-devkit/schematics : 20.1.1
@angular/cli : 20.1.1
@ionic/angular-toolkit : 12.2.0

Capacitor:

Capacitor CLI : 7.4.2
@capacitor/android : not installed
@capacitor/core : 7.4.2
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.17.1 (/Users/raphaelbalet/.nvm/versions/node/v22.17.1/bin/node)
npm : 10.9.2
OS : macOS Unknown

Additional Information

If I manually remove the ion-modal from the DOM, the selection is working back again

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