Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ce6d6c4

Browse files
committed
Fix autocompleter blinking
1 parent b1d7723 commit ce6d6c4

File tree

1 file changed

+3
-1
lines changed
  • core/src/plugins/gui.ajax/res/js/lib/scriptaculous/src

1 file changed

+3
-1
lines changed

core/src/plugins/gui.ajax/res/js/lib/scriptaculous/src/controls.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ Autocompleter.Base = Class.create({
198198

199199
onMouseup: function(event) {
200200
if(!this.hasFocus) {
201-
this.hideTimeout = setTimeout(this.hide.bind(this), 250);
201+
this.hideTimeout = setTimeout(function(){
202+
if(!this.hasFocus) this.hide();
203+
}.bind(this), 250);
202204
this.hasFocus = false;
203205
this.active = false;
204206
}

0 commit comments

Comments
 (0)