Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
balupton committed Jul 24, 2012
1 parent f9c2273 commit 8ed53fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/js/textext.plugin.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@
*
* @param core {TextExt} Instance of the TextExt core class.
*
* @author agorbatchev
* @date 2011/08/17
* @author bugherd
* @date 2012/07/24
* @id TextExtAutocomplete.init
*/
p.init = function(core)
Expand Down Expand Up @@ -296,7 +296,7 @@
self.on(container, {
mouseover : self.onMouseOver,
mousedown : self.onMouseDown,
click : self.onClick
mouseup : self.onMouseUp
});

container
Expand Down Expand Up @@ -380,11 +380,11 @@
*
* @param e {Object} jQuery event.
*
* @author agorbatchev
* @date 2011/08/17
* @author bugherd
* @date 2012/07/24
* @id TextExtAutocomplete.onClick
*/
p.onClick = function(e)
p.onMouseUp = function(e)
{
var self = this,
target = $(e.target)
Expand Down

0 comments on commit 8ed53fa

Please sign in to comment.