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

feat(typeahead): allow veto of an item selection #733

Closed
wants to merge 1 commit into from
Closed

feat(typeahead): allow veto of an item selection #733

wants to merge 1 commit into from

Conversation

pkozlowski-opensource
Copy link
Member

Closes #699

BREAKING CHANGE: payload of the typeahead's selectItem event was changed - now it is
an object implementing the NgbTypeaheadSelectItemEvent. You can easily migrate your existing
code by changing:

<input [ngbTypeahead]="find" (selectItem)="onSelect($event)"/>

to

<input [ngbTypeahead]="find" (selectItem)="onSelect($event.item)"/>

Closes #699

BREAKING CHANGE: payload of the typeahead's `selectItem` event was changed - now it is
an object implementing the `NgbTypeaheadSelectItemEvent`. You can easily migrate your existing
code by changing:

`<input [ngbTypeahead]="find" (selectItem)="onSelect($event)"/>`

to

`<input [ngbTypeahead]="find" (selectItem)="onSelect($event.item)"/>`
@wesleycho
Copy link
Member

LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants