Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
903 stars 359 forks source link

addOnBlur not working with touchpad #943

Open ricardodolnl opened 4 years ago

ricardodolnl commented 4 years ago

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

The addOnBlur event doesn't work on devices with a touchpad. To be more clear, the touchpad has to be set to 'touch to click' not push to click. In my case the field has also a validator for email and it's the last field before someone would click on a send button. So the addOnBlur event doesn't run fast enough before the send button event is running. This does work fine if the touchpad is set to 'press to click' or when using a mouse.

Expected behavior

That it would add the email on blur before the form is submitted.

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version angular-cli

Angular version: 9.0.6

ngx-chips version: 2.1.0

Browser: all desktop browser at least