optimistex / ngx-select-ex

Angular based replacement for select boxes
https://optimistex.github.io/ngx-select-ex/
MIT License
109 stars 42 forks source link

Highlight and search text then enter not working properly #135

Closed sufiiiyan closed 5 years ago

sufiiiyan commented 5 years ago

on focus select, it highlights the first item highlight but when I start typing some text, highlight goes away and when I hit enter, it select bydefault 1st item from select

nohighlight

"ngx-select-ex": "^3.5.2-ng4",

Node: 10.8.0 Angular: 5.2.6

optimistex commented 5 years ago

@sufiiiyan It seems fixed in latest version. Try it: https://stackblitz.com/edit/ngx-select-ex-issues-100-unf9rx?file=app/app.component.ts

sufiiiyan commented 5 years ago

How can I install latest version of "ngx-select-ex ng4" my current version is "ngx-select-ex": "^3.5.2-ng4",

and my current code is ` <ngx-select name="userSelect" [multiple]="true" [items]="appUsers" optionValueField="id" optionTextField="firstName" placeholder="Select User" [(ngModel)]="newGroup.userList" (select)="userSelected($event)"

userSelection [autoClearSearch]="true" (typed)="addNewUser($event)">

                <ng-template ngx-select-option ngx-select-option-selected let-option let-text="text">
                  <span [innerHtml]="text" style="margin-right: 2px;"></span>{{
                  option.data.lastName }}
                </ng-template>
              </ngx-select>`
optimistex commented 5 years ago

@sufiiiyan Just confirm that your issue is solved in the new version. I need to know is it a new bug and I have to find a time to fix it? Or it is a reason to update the *-ng4 version.

sufiiiyan commented 5 years ago

Yes the link you have sent me fixes my issue. Please update ng4 version with the same

optimistex commented 5 years ago

@sufiiiyan Ok. I'll try to find a time for it in the evening.

sufiiiyan commented 5 years ago

Thank you so much

optimistex commented 5 years ago

@sufiiiyan I've upgraded the ng4 compatible version. Install: npm i ngx-select-ex@ng4-dev

Check it, please.

The release: https://github.com/optimistex/ngx-select-ex/releases/tag/3.5.3-ng4-dev

sufiiiyan commented 5 years ago

Awesome its working 👍 Thank you for quick support