Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found text is not used for custom tags #234

Closed
evxn opened this issue Feb 4, 2018 · 2 comments
Closed

Not found text is not used for custom tags #234

evxn opened this issue Feb 4, 2018 · 2 comments

Comments

@evxn
Copy link
Contributor

evxn commented Feb 4, 2018

Expected behaviour

"No items found" text is visible if addTag is set to true.

Actual behaviour

Narrow stripe is visible.
ng-select-bug

DEMO https://stackblitz.com/edit/angular-xy1avv

More Info

ng-select version: 0.17.0

browser: Version 61.0.3163.100 (Official Build) Built on Ubuntu , running on Ubuntu 17.10 (64-bit)

reproducible in demo page: YES

@evxn
Copy link
Contributor Author

evxn commented Feb 4, 2018

The reason is this line:
4149375#diff-68265c9310f2ae9e060ab288eb5e8491R64
Which I suppose was intended behavior. But it looks just weird.

@evxn
Copy link
Contributor Author

evxn commented Feb 4, 2018

My suggestion is to change
<div class="ng-menu" *ngIf="showNoItemsFound() && !addTag">
to
<div class="ng-menu" *ngIf="showNoItemsFound() && !showAddTag()">

new behavior demo:
ng-select-show-add-tag

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

No branches or pull requests

2 participants