fix nil close error on esc

This commit is contained in:
Crum
2018-05-17 17:29:05 -05:00
parent d52da42f77
commit 61acc7c2ec
+2 -2
View File
@@ -149,10 +149,10 @@ function B:OpenEditbox()
end end
function B:ResetAndClear() function B:ResetAndClear()
local editbox = self:GetParent().editBox or this local editbox = this.editBox or this
if editbox then editbox:SetText(SEARCH) end if editbox then editbox:SetText(SEARCH) end
self:ClearFocus() editbox:ClearFocus()
B:SearchReset() B:SearchReset()
end end