[Ionic v4.0.0-beta.3] ion-select popover interface hidden by modal (incorrect z-index)
See original GitHub issueBug 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 <ion-select> 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;}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Ionic v4.0.0-beta.3] ion-select popover interface hidden by ...
Inspecting with dev-tools shows that the following z-indexes get applied in my app: <ion-modal> => element.style { z-index: 20003;} ...
Read more >ion-select: Select One or Multiple Value Boxes or Placeholders
ion-select is represented by selected value(s), or a placeholder, and dropdown icon. When you tap select, a dialog box appears with an easy...
Read more >Ion-Select is hidden behind Ion Modal - Stack Overflow
Solved: it was a documentation problem about create modals. The doc says the wrong procedure. If the modal it's called in the correct...
Read more >Styling Ion-Select With Popover Interface - ADocLib
An Ionic component similar to Ionic Select that allows to search items If the ... v4.0.0beta.3] ionselect popover interface hidden by modal incorrect...
Read more >Source - GitHub
[6.4.0](https://github.com/ionic-team/ionic-framework/compare/v6.3.10...v6.4.0) ... **modal, popover:** remove trigger click listeners when overlay is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Already fixed in master! should be fixed in next release!
Thanks for the issue!
Related to / possible duplicate of #14662