Created
January 29, 2018 17:23
-
-
Save alpha-and-omega/10f4644abed5abb393b285e92baa4015 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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