ui-widgets: always run dropdown function on select

This commit is contained in:
shagu
2020-05-26 19:32:10 +02:00
parent f1002aa514
commit 1ef0f83974
+4 -4
View File
@@ -124,10 +124,6 @@ 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()
@@ -165,6 +161,10 @@ 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)