ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

When ui-select-no-choice is not provided, the default element is always displayed

Open mdarveau opened this issue 10 years ago • 5 comments

Bug description:

@khanhto Since https://github.com/angular-ui/ui-select/commit/fcd1eb48e5b4dbe6d0305abcefb6c038901863ab, my UI has alignment problems. I tracked the bug down to some CSS on the ui-select-no-choice div. Turns out that if the ui-select-no-choice is not present, the default one (from src/bootstrap/select.tpl.html) is placed in the DOM but without the ng-show attribute thus always present.

Check the example in http://plnkr.co/edit/?p=preview and look at the DOM: image

The ui-select-no-choice is present in the DOM and the ng-show is not applied. I guess that something is wrong in src/uiSelectDirective.js.

Angular: 1.5.6

UI-Select: 0.18.1

Bootstrap: 3.3.6

mdarveau avatar Aug 06 '16 23:08 mdarveau

Workaround: explicitly add a div with ui-select-no-choice and it will be hidden properly.

mdarveau avatar Aug 06 '16 23:08 mdarveau

That pull request was posted long ago, I really don't remember. From what you described, maybe we could apply ng-show to select.tpl.html to fix them problem. Can you confirm and post another pull request?

khanhto avatar Aug 07 '16 03:08 khanhto

Your plunkr link is not valid...

As it is a styling issue, maybe a screenshot of the broken ui-select also.

user378230 avatar Aug 09 '16 10:08 user378230

Assuming user resolved their issue, closing.

user378230 avatar Aug 25 '16 10:08 user378230

Create PR https://github.com/angular-ui/ui-select/pull/1784

mdarveau avatar Aug 26 '16 01:08 mdarveau