Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

ui-select-no-choice isn't displayed #1609

Closed
santosguilherme opened this issue May 17, 2016 · 6 comments
Closed

ui-select-no-choice isn't displayed #1609

santosguilherme opened this issue May 17, 2016 · 6 comments

Comments

@santosguilherme
Copy link

santosguilherme commented May 17, 2016

I have already downloaded the version 0.17.1, the directive "uiSelectNoChoice" is in file "dist/select.js", but when the search returns no results, it does not appear.

Doesn't work with ui-select add no-choice, plunker link.

My code:

<ui-select ng-model="elementExtensions.ator" theme="bootstrap" fix-focus-ui-select>
    <ui-select-match allow-clear="true" placeholder="{{::'TYPE_FOR_SEARCH' | translate}}">
      {{$select.selected.name}}
    </ui-select-match>
    <ui-select-choices refresh="loadAsyncActors($select.search)" refresh-delay="300"
                       repeat="actor in actorPropertyViewControl.availableActors">
      <div ng-bind-html="actor.name | highlight: $select.search"></div>
    </ui-select-choices>
    <ui-select-no-choice>
      Dang! We couldn't find any choices...
    </ui-select-no-choice>
</ui-select>

HTML:
selecao_014

@user378230
Copy link
Contributor

The select.js/select.css in your plunkr are outdated (v0.16.1) can you update to latest versions? (You can use the files from the /dist/ here in the repo)

Thanks!

@santosguilherme
Copy link
Author

Updated.

@hut8
Copy link

hut8 commented May 28, 2016

Seems like a duplicate of #1608, no?

@santosguilherme
Copy link
Author

No, i'm using bootstrap theme.

@hut8
Copy link

hut8 commented May 28, 2016

My mistake. Using 1.7.1 I am able to get it to display, but I can't figure out what's wrong with the plunkr at the moment.

@dimitarrusev
Copy link

Strange. The directive is working fine with inline templates but not with external ones. Here’s a plunk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants