Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Selected() not triggered in Angular 8 #442

Open
Facj opened this issue Nov 28, 2019 · 6 comments
Open

Selected() not triggered in Angular 8 #442

Facj opened this issue Nov 28, 2019 · 6 comments

Comments

@Facj
Copy link

Facj commented Nov 28, 2019

Is there any known issue with Angular 8?

I have tried this example and it works fine as is but it stops working when updated to Angular 8.
Data binding still works but the selected() event never gets triggered.

@tdhulster
Copy link

I have the same issue here since updating from [email protected] to [email protected]
@Facj rolling back to 3.0.2 should work for now.

I'll see if I can isolate/demo the problem in a Stackblitz

@Facj
Copy link
Author

Facj commented Dec 2, 2019

@tdhulster You're right! Version 3.0.2 works fine for me too.

@alexeykatuhin
Copy link

The same trouble

@mvdevries
Copy link

Hello it looks like we have the same problem using version 3.0.3 that selected() is never triggered

@ArthurJJr
Copy link

While tracking this down, I looked through the ng2-completer/esm2015/ng2-completer.js file and found that moving the contents of the CompleterCmp class' ngOnInit() method into its ngAfterViewInit() resulted in the selected event firing again (this.completer is apparently still undefined in the ngOnInit() but has been set by the time ngAfterViewInit() is called).

@oferh
Copy link
Owner

oferh commented Apr 9, 2020

should be working in 9.0.1

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

No branches or pull requests

6 participants