fix nil ClearFocus error in bags

This commit is contained in:
Crum
2018-01-25 19:50:05 -06:00
parent fc4a2b628b
commit 0eee0cafdd
+2 -2
View File
@@ -149,10 +149,10 @@ function B:OpenEditbox()
end
function B:ResetAndClear()
local editbox = this:GetParent().editBox or this
local editbox = self:GetParent().editBox or this
if editbox then editbox:SetText(SEARCH) end
this:ClearFocus()
self:ClearFocus()
B:SearchReset()
end