ui-widgets: always recursions in dropdown select

This commit is contained in:
shagu
2020-05-26 21:15:29 +02:00
parent 1ef0f83974
commit 5e7d21ee24
+4 -4
View File
@@ -124,6 +124,10 @@ do -- dropdown
else
this.parent:HideMenu()
end
if this.parent.menu[this.id].func then
this.parent.menu[this.id].func()
end
end
local function ListEntryOnEnter()
@@ -161,10 +165,6 @@ do -- dropdown
if id and self.menu and self.menu[id] then
self.text:SetText(self.menu[id].text)
self.id = id
if self.menu[id].func then
self.menu[id].func()
end
end
end,
["SetSelectionByText"] = function(self, name)