You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2015/07/20 21:30:17 UTC

wicket git commit: WICKET-5882 Added a comment about this fix for IE

Repository: wicket
Updated Branches:
  refs/heads/master 13b06ad0f -> 0f48a1e71


WICKET-5882 Added a comment about this fix for IE


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/0f48a1e7
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0f48a1e7
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0f48a1e7

Branch: refs/heads/master
Commit: 0f48a1e718cacb123936a4d86e4948ecb91aff27
Parents: 13b06ad
Author: Andrea Del Bene <ad...@apache.org>
Authored: Mon Jul 20 21:29:55 2015 +0200
Committer: Andrea Del Bene <ad...@apache.org>
Committed: Mon Jul 20 21:29:55 2015 +0200

----------------------------------------------------------------------
 .../ajax/markup/html/autocomplete/wicket-autocomplete.js           | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0f48a1e7/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
----------------------------------------------------------------------
diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
index c64be00..96099e0 100644
--- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
+++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
@@ -91,6 +91,8 @@
 			Wicket.Event.add(obj, 'blur', function (jqEvent) {
 				var containerId=getMenuId()+"-container";
 				
+				//workaround for IE. Clicks on scrollbar trigger
+				//'blur' event on input field. (See https://issues.apache.org/jira/browse/WICKET-5882)
 				if (containerId !== document.activeElement.id) {
 					window.setTimeout(hideAutoComplete, 500);
 				}