question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Ionic v4.0.0-beta.3] ion-select popover interface hidden by modal (incorrect z-index)

See original GitHub issue

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:

  1. Create a component that contains an <ion-select interface="popover">
  2. open that component as a modal using modalCtrl.create().then(modal=>modal.present())
  3. 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
manucorporatcommented, Aug 24, 2018

Already fixed in master! should be fixed in next release!

1reaction
brandyscarneycommented, Aug 20, 2018

Thanks for the issue!

Related to / possible duplicate of #14662

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found