This repository was archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Usage inside a custom directive #1079
Comments
Same issue. If ui-select is used directly without directive, all works. If it is inside directive, dropdown fails. |
Another observation, when serving from my dist folder, where the templates have been prefetched inside js blocks, it works fine. |
Thanks @jbonigomes. Workaround is to preload template on app loading: angular.module('myApp').run(function($templateRequest) {
$templateRequest('components/parts/directive-template-with-ui-select.html', true);
}); |
thanks @ma-zal it works for me, however it would still be nice not having to do it, not sure if I should close the issue |
To @jbonigomes: This is a bug. Don't close this issue. It is my opinion. |
thanks |
I believe template loading issues were resolved in #1430 If the issues is still relevant please update with tests against the latest version of ui-select. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using angular-ui/ui-select inside a custom angular directive, when I first load the page, or do a full browser refresh, the dropdown menu does not appear when I click the dropdown arrow. However, if I navigate to another state (yes I'm using ui-router) then go back to the state that has the dropdown, the dropdown works just fine. Here are a couple of observations:
Does anybody know what I am doing wrong or went through the same problem?
Thanks
The text was updated successfully, but these errors were encountered: