fix blurring of menu#609
Conversation
if you click and hold (without releasing mouse), the dropdown will still blur/hide. This is because the order of events goes mousedown -> blur -> mouseup -> click So basically you must click "quickly" or lose the menu
|
What was wrong before? Now if you don't release it quickly it just hides suggestions and does not select anything. |
|
Yep, again and again and this fix still not merged for almost a year @tkirda. @719media the problem with your fix is, that if you start clicking on results and then move mouse out of the results div, and release button, then autocomplete becomes broken (focus lost and nothing can hide results). So after 2 hours of efforts I came to this solution: |
|
Thanks for this contribution, and apologies for the very long silence. The project was dormant for several years and has just shipped v2.0, which is a ground-up TypeScript rewrite with a new build (esbuild), test runner (Vitest + jsdom), and CI pipeline. As a result this PR no longer applies cleanly against I'm closing it as part of a triage pass on the long-stale PR backlog — not because the idea lacks merit. If this change is still valuable to you against 2.0, please open a fresh PR (or an issue first if you'd like to confirm direction); I'll review new submissions against the current codebase promptly. Thanks again for taking the time. |
if you click and hold (without releasing mouse), the dropdown will still blur/hide. This is because the order of events goes
mousedown -> blur -> mouseup -> click
So basically you must click "quickly" or lose the menu