Quantcast

Slight fix for scrollbar search function using same text twice.

Xruptor [07-24-18 - 16:27]
Slight fix for scrollbar search function using same text twice.
Filename
modules/search.lua
diff --git a/modules/search.lua b/modules/search.lua
index b6e33e1..1aa7dab 100644
--- a/modules/search.lua
+++ b/modules/search.lua
@@ -128,7 +128,8 @@ end
 function Search:DoSearch(searchStr)
 	local searchStr = searchStr or self.searchbar:GetText()
 	searchStr = searchStr:lower() --always make sure everything is lowercase when doing searches
-
+	self.searchbar:SetText() --erase current text
+
 	local searchTable = {}
 	local tempList = {}
 	local previousGuilds = {}