Skip to content

Instantly share code, notes, and snippets.

@alpha-and-omega
Created January 29, 2018 17:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpha-and-omega/10f4644abed5abb393b285e92baa4015 to your computer and use it in GitHub Desktop.
Save alpha-and-omega/10f4644abed5abb393b285e92baa4015 to your computer and use it in GitHub Desktop.
From 6f37d13832fa03f7ae7af88ef16aa0ea27280b02 Mon Sep 17 00:00:00 2001
From: <fixes blur bug>
Date: Mon, 29 Jan 2018 19:12:41 +0300
Subject: [PATCH] fixes blur bug
---
src/jquery.autocomplete.js | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js
index 18d6eda..c0a66f2 100644
--- a/src/jquery.autocomplete.js
+++ b/src/jquery.autocomplete.js
@@ -203,6 +203,11 @@
clearTimeout(that.blurTimeoutId);
})
+ container.on('mousedown.autocomplete', function () {
+ // prevent blur:
+ return false;
+ })
+
that.fixPositionCapture = function () {
if (that.visible) {
that.fixPosition();
--
libgit2 0.24.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment