mbenford / ngTagsInput

Tags input directive for AngularJS
http://mbenford.github.io/ngTagsInput
MIT License
1.64k stars 541 forks source link

enter keydown event not firing when input is empty #861

Open kagant15 opened 6 years ago

kagant15 commented 6 years ago

I need the ability to execute a function when the user presses enter/return inside the input box when its empty. The problem is if add-on-enter="true" which it is by default then event.preventDefault() will prevent my custom function from firing. However if I set add-on-enter="false" it will work but then I look my add on enter feature which I also want.

sauldeleon commented 4 years ago

Hi! Did you find out how to handle events on the autocomplete directive? I would like to control on-blur and on-focus events

thanks!

kagant15 commented 4 years ago

I can’t remember if I did. It’s been a while since I had this problem and I don’t use this lib anymore. I’m sorry I can’t be more helpful.