jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

Bug absent at devbridge website but present in latest master branch

Open alpha-and-omega opened this issue 7 years ago • 4 comments

How to reproduce:

  1. Open examples from index.html (repository root)
  2. Type something to any autocomplete field to get results.
  3. Click and hold left mouse button for more than 200 microseconds on any result. Nothing happens, no results selected, results hidden.

And this bug happens here and there for old/slow people you know..

But this bug is absent at devbridge website here: https://www.devbridge.com/sourcery/components/jquery-autocomplete/ And to add more frustration source code at devbridge is hidden very well, I was unable to find out how they did it.

alpha-and-omega avatar Jan 28 '18 20:01 alpha-and-omega

This has something to do with the 200ms blur timeout period defined here.

Increasing it to 500ms seems to fit a bit better for a common use.

xfra35 avatar Jan 29 '18 17:01 xfra35

Yes. But increasing timout makes menu slow. @xfra35 I have proposed better fix here #609

alpha-and-omega avatar Jan 29 '18 18:01 alpha-and-omega

Oh you're right, I was switching fields with tab and didn't notice the slowness.

Thanks for providing a fix. It's very smart 👍

I'd advise to create a PR so that it can be quickly merged.

xfra35 avatar Jan 29 '18 21:01 xfra35

Is anyone working on this issue? We were having reports of intermittent issue with selecting items and changing the timeout to 500ms fixed it for us. I'm happy to submit a PR, although the fix proposed by @alpha-and-omega here https://github.com/devbridge/jQuery-Autocomplete/pull/609#issuecomment-361320583 seems much better than adjusting the timeout.

Wylan avatar Feb 22 '19 17:02 Wylan