Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Click on scrollbar in dropdown makes list disappear #4

Closed
fabricasapiens opened this Issue · 6 comments

2 participants

@fabricasapiens

In Chrome on Windows, a click on the scrollbar (as for example on the homepage http://textextjs.com/) will make the list disappear instead of scroll.

@alexgorbatchev

Thank you for reporting this.

@alexgorbatchev

@fabricasapiens Sounds like there is a small number of issues specific to Windows. Unfortunately I don't have a readily available windows environment, do you think it's something you could look into?

@fabricasapiens

I would assume it's the same issue with Chrome/Chromium across OS but I will try to look into this when I have the time! I think it has to do with not calling an event.preventDefault(); and event.stopPropagation(); somewhere...

@adamayres adamayres referenced this issue from a commit in adamayres/jquery-textext
@adamayres adamayres Fixes #2 #4 #5 - Capture mousedown event in autocomplete used by the …
…blur event to determine if it was triggered by a scroll click or an item selection, in which case we set focus back to the input instead of closing the autocomplete. Added a click listener to the document body that triggers the autocomplete to close when the click is not within the textext wrap element.
f312b04
@fabricasapiens

Sweet :)

@alexgorbatchev

@adamayres great, thank you! I'll have a look at this shortly.

@prateekdayal prateekdayal referenced this issue from a commit in prateekdayal/jquery-textext
@adamayres adamayres Fixes #2 #4 #5 - Capture mousedown event in autocomplete used by the …
…blur event to determine if it was triggered by a scroll click or an item selection, in which case we set focus back to the input instead of closing the autocomplete. Added a click listener to the document body that triggers the autocomplete to close when the click is not within the textext wrap element.
044f6a9
@alexgorbatchev

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.