Skip to content
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

Suggestions aren't clickable when autocomplete is manually shown #28

Open
sindresorhus opened this issue Feb 26, 2012 · 1 comment
Open

Comments

@sindresorhus
Copy link

Testcase

Reproduce:
Try to click the textarea and then on one of the suggestion. Nothing happens.
However, if you remove the manual trigger (line 23) from the JS, hit Run, and then try again, the suggestion will be clickable.

@balupton
Copy link

balupton commented Jun 7, 2012

I fixed this by doing:

      self.on(container, {
        mouseover : self.onMouseOver,
        mousedown : self.onMouseDown,
        mouseup     : self.onClick
      });

instead of:

      self.on(container, {
        mouseover : self.onMouseOver,
        mousedown : self.onMouseDown,
        click     : self.onClick
      });

balupton added a commit to macropodhq/jquery-textext that referenced this issue Jul 24, 2012
…batchev#28 - Suggestions aren't clickable when autocomplete is manually shown

Problem is that the click event does not fire for some reason, however
the mouseup event does. Likely browser lacking support, or the click
event is cancelled by a bubbling event. However, this fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants