From 61acc7c2ecd2574e7e22dfde16387e7a1fe2bfe0 Mon Sep 17 00:00:00 2001 From: Crum Date: Thu, 17 May 2018 17:29:05 -0500 Subject: [PATCH] fix nil close error on esc --- ElvUI/Modules/Bags/Bags.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI/Modules/Bags/Bags.lua b/ElvUI/Modules/Bags/Bags.lua index 47dca4e..b7c5e9f 100644 --- a/ElvUI/Modules/Bags/Bags.lua +++ b/ElvUI/Modules/Bags/Bags.lua @@ -149,10 +149,10 @@ function B:OpenEditbox() end function B:ResetAndClear() - local editbox = self:GetParent().editBox or this + local editbox = this.editBox or this if editbox then editbox:SetText(SEARCH) end - self:ClearFocus() + editbox:ClearFocus() B:SearchReset() end