Angular ui-select is not displaying the list of options when included in angular-ui-bootstrap modal

Dhana Sekar picture Dhana Sekar · Apr 27, 2015 · Viewed 16.7k times · Source

I am facing an issue with the anular-ui-bootstrap modal directive. Am using the angular's ui-select component in my app as a replacement for the html select. This ui-select is working fine in any page it is being included. But when i tried to include it in a modal pop up(using ui-bootstrap $modal service), the drop-down is not displaying the options

The issue is reproduced here

Any help would be much appreciated. Thanks in advance.

Answer

DeezCashews picture DeezCashews · Aug 7, 2015

I ran into this (or something similar) with ngDialog. I fixed my problem by adding a ng-hide attribute like so:

<ui-select-choices repeat="..." ng-hide="!$select.open">

This fixed the problem that I had where select-choices was given a ng-hide empty attribute by the component for some reason internally when in a dialog. Hope this helps you workaround this issue as well.