Select inside a popup


#1

Is there a way to use a select inside a popup without the popup closing when opening the select?


#2

The problem is that currently only one mobiscroll modal is allowed at a time, to prevent displaying multiple modals over each other - both the popup and the select picker are considered modals.
But you’re right, opening a picker control from a modal should be allowed. We will do some improvements on this, until than the workaround is that in the picker control’s onBeforeShow event set the active instance to null, this will prevent the closing of the popup:

onBeforeShow: function () {
  mobiscroll.activeInstance = null;
}

Let me know if this helps!


#3

Thanks!

The workaround works seemingly well for now :slight_smile:


#4

We fixed this in our latest 4.4.2 version, so the workaround is no longer necessary.