Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

enter keydown event not firing when input is empty #861

Open
kagant15 opened this issue May 25, 2018 · 2 comments
Open

enter keydown event not firing when input is empty #861

kagant15 opened this issue May 25, 2018 · 2 comments

Comments

@kagant15
Copy link

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
Copy link

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
Copy link
Author

kagant15 commented Apr 9, 2020

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.

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

2 participants