Fix problem with autocomplete which closes when mouse is used. #8435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "github/fork/angelozerr/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi Marijn,
I have already (but not every time-() the problems with the completion which closes when I use the mouse (click on scrollbar or inside the list) (see https://github.com/marijnh/CodeMirror/issues/1264).
To have every time the bug, you can change the timeout like this :
function onBlur(){ closingOnBlur = setTimeout(close, 1); };
So I send you a (simple patch) which fix teh problem. The basic idea is to ignore the onBlur when mouse is inside the completion list.
Regards Angelo
mentioned in issue #1264
Aha, you were clicking the scrollbar of the completion pop-up. I thought you were talking about the scrollbar of the editor (which did initially have the same problem). That explains why I couldn't reproduce this.
Please see
612b3d2cbfand verify whether it solves your problem.It works well with Chrome and FF, but not with IE8. My patch resolved IE too.
I (once again) can't reproduce the problem anymore in IE8. What I do is open the completion demo, put the cursor somewhere where it's not in a word, press ctrl-space, and scroll the resulting (long) list of completions by clicking the scrollbar of the pop-up.
Make sure your cache is cleared, etc.
Your patch caused the editor to be deselected when scrolling the widget, used
onmouseleavenaively (it will also fire when the mouse is moving between elements inside the widget), and generally added more complexity than needed.I have cleand my cache etc
The bug is very hard to reproduce (sometimes it comes every time and
sometimes never -().
It comes often when the list opens (and the mouse is not inside in the
opened list) and I scroll quicly several times the scrollbar on t e rigth
of the list , the list closes.
2013/2/22 Marijn Haverbeke notifications@github.com
I'm still not managing to reproduce this. You'll have to debug it yourself.
Ok, that's shame for me-(
I will try to debug it (but very hard with IE tools) when I will have time.
Regards Angelo
2013/2/25 Marijn Haverbeke notifications@github.com
Pull request closed