-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
Description
Bug Report
Ionic Info
Run ionic info
from a terminal/cmd prompt and paste the output below.
Ionic:
ionic (Ionic CLI) : 4.0.6 (/Users/Joey/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.3
@angular-devkit/core : 0.7.4
@angular-devkit/schematics : 0.7.4
@angular/cli : 6.1.4
@ionic/ng-toolkit : 1.0.6
@ionic/schematics-angular : 1.0.5
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : none
System:
ios-deploy : 1.9.1
ios-sim : 5.0.13
NodeJS : v8.11.3 (/Users/Joey/.nvm/versions/node/v8.11.3/bin/node)
npm : 6.4.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Describe the Bug
When a modal contains an <ion-select interface="popover">
, the popover drop-down displaying the options is hidden because the <ion-modal>
has a higher z-index than the <ion-popover>
Steps to Reproduce
Steps to reproduce the behavior:
- Create a component that contains an
<ion-select interface="popover">
- open that component as a modal using
modalCtrl.create().then(modal=>modal.present())
- Navigate in the app to open the modal and then open or tap on the to open up the options popover
Expected Behavior
You should be able to see the popover, but nothing appears. If you hit esc
, it will close the modal, and then you can see the popover that was supposed to show up inside the modal. This popover is now orphaned because it's parent <ion-select>
got removed with the modal.
Inspecting with dev-tools shows that the following z-indexes get applied in my app:
<ion-modal>
=>element.style { z-index: 20003;}
<ion-popover>
=>element.style { z-index: 10004;}
gilhardl and bleuscyther