From 5a72522fb2d330fff686062364efe6c045fd807e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 15 Mar 2008 22:48:12 +0000 Subject: [PATCH] Don't let the auto-suggest overwrite the form field after the page has redrawn a bit. Fixes #6240. Hat tip: azaozz. git-svn-id: https://develop.svn.wordpress.org/trunk@7324 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/jquery/suggest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/jquery/suggest.js b/wp-includes/js/jquery/suggest.js index 656e58b5cf..d0f4578b14 100644 --- a/wp-includes/js/jquery/suggest.js +++ b/wp-includes/js/jquery/suggest.js @@ -183,7 +183,9 @@ $results.hide(); return; } - + + resetPosition(); // when the form moves after the page has loaded + var html = ''; for (var i = 0; i < items.length; i++) html += '
  • ' + items[i] + '
  • ';