-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click on scrollbar in dropdown makes list disappear #4
Comments
Thank you for reporting this. |
@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? |
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... |
…usedown 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.
Sweet :) |
@adamayres great, thank you! I'll have a look at this shortly. |
…usedown 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.
Merged. |
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.
The text was updated successfully, but these errors were encountered: