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)
|
||||
self:SetText("")
|
||||
self.placeholder:Show()
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue