valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

ngx-bootstrap typeahead typeaheadOnSelect not called when clearing input #6007

Open rekna1 opened 3 years ago

rekna1 commented 3 years ago

Angular 10 ngx-bootstrap 6.1.0

typeAhead with async source, typeaheadOnSelect calls method to set object into viewmodel when input field is cleared, typeaheadOnSelect is not called so input field and viewmodel are not in sync how to clear the corresponding selected object when the input field is cleared ?

use case : consider a search form, where one input field is used to search persons. selecting a person would set person id in viewmodel as search argument. but when clearing the input field , person id in viewmodel should be set to null in order to prevent the search arguments still searching with previous selected person id

apotapcukv commented 3 years ago

Hi, @rekna1! We can’t reproduce the issue. If you still can, please do it at https://stackblitz.com/edit/angular-ivy-de1elj?file=tsconfig.json/ and share with us, or please add a recorded video. Please don’t hesitate to let us know if you face further issues. Thank you for using our library).

rekna1 commented 3 years ago

You can close the issue for me as I've switched to another library... my reasons for it are:

Nontheless, thank you and the team of the effort of creating and supporting this library.