Move clearing text on show out of generic frame factory
This commit is contained in:
parent
4accb650c6
commit
9982e27050
|
@ -6,7 +6,6 @@ local BORDER_TEXTURE = "Interface\\Common\\Common-Input-Border"
|
||||||
|
|
||||||
|
|
||||||
local function OnShow(self)
|
local function OnShow(self)
|
||||||
self:SetText("")
|
|
||||||
self.placeholder:Show()
|
self.placeholder:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ function ns.MakeSearchField(parent)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
editbox:SetScript("OnLeave", GameTooltip_Hide)
|
editbox:SetScript("OnLeave", GameTooltip_Hide)
|
||||||
|
editbox:SetScript("OnShow", function(self) self:SetText("") end)
|
||||||
|
|
||||||
ns.MakeSearchField = nil
|
ns.MakeSearchField = nil
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue