Move clearing text on show out of generic frame factory

This commit is contained in:
tekkub ʕ ´ᴥ` ʔ 2016-09-11 19:49:50 -06:00
parent 4accb650c6
commit 9982e27050
2 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,6 @@ local BORDER_TEXTURE = "Interface\\Common\\Common-Input-Border"
local function OnShow(self)
self:SetText("")
self.placeholder:Show()
end

View File

@ -24,6 +24,7 @@ function ns.MakeSearchField(parent)
end)
editbox:SetScript("OnLeave", GameTooltip_Hide)
editbox:SetScript("OnShow", function(self) self:SetText("") end)
ns.MakeSearchField = nil