oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

event keyup.enter not recognized #338

Open kjain1995 opened 7 years ago

kjain1995 commented 7 years ago

I'm trying to fire a method when the enter key is pressed, however keyup.enter is not firing anything. keyup works, but it also is triggered by any other input in the textbox. Is there a way around this, or should I just check in the event if the keyup was triggered by the enter key?

ghost commented 7 years ago

Are you sure you are using the following syntax?

` <ng2-completer (keyup.enter) ="doSomething()"

`

kjain1995 commented 7 years ago

Yes that's the syntax I tried using @oneinazillion

oferh commented 7 years ago

@oneinazillion ng2-completer doesn't listen to keyup.enter and therefore doesn't re-emit it.