All right, I built my own drop down list, hoping that I can use this without spreading taint.
But it turns out that even this miminal example spreads the taint:
Lua Code:
local myDropdown = CreateFrame("Frame", "myDropdown", UIParent, "UIDropDownMenuTemplate")
myDropdown:SetPoint("TOP")
UIDropDownMenu_SetWidth(myDropdown, 130)
local function MyDropdown_Initialize()
local info = UIDropDownMenu_CreateInfo()
info.text = "test"
info.value = 1
UIDropDownMenu_AddButton(info)
info.value = 2
UIDropDownMenu_AddButton(info)
info.value = 3
UIDropDownMenu_AddButton(info)
info.value = 4
info.checked = true
UIDropDownMenu_AddButton(info)
end
UIDropDownMenu_Initialize(myDropdown, MyDropdown_Initialize)
You get the error like this:
- Go into combat.
- Open the game menu (click the button, do not press ESC which would exit combat).
- Click on "Interface".
- Chose the "Accessibilty" tab of the "Interface" window.
- Click my drop down menu at the top of the (UIParent) screen.
- Click the "Cancel" button in the bottom right of the "Interface" window.
Is this bugged or am I doing anything wrong?