Quantcast

When the SearchBox loses focus, ensure that the highlight is removed.

James D. Callahan III [07-11-10 - 05:56]
When the SearchBox loses focus, ensure that the highlight is removed.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index f465b62..3e00705 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -624,6 +624,10 @@ SearchBox:SetScript("OnEditFocusLost",
 				    self:Reset()
 				    return
 			    end
+
+			    -- Ensure that the highlight is cleared.
+			    self:SetText(text)
+
 			    self:AddHistoryLine(text)
 		    end)