From f7c420a05855a1942b888e7335e5399402490fa5 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 9 Sep 2016 17:02:01 +0300 Subject: [PATCH] This should fix lines ignoring clicks at random --- ElvUI_SLE/core/dropdown.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ElvUI_SLE/core/dropdown.lua b/ElvUI_SLE/core/dropdown.lua index 20b7e38..c6c54ad 100644 --- a/ElvUI_SLE/core/dropdown.lua +++ b/ElvUI_SLE/core/dropdown.lua @@ -62,6 +62,7 @@ local function CreateListButton(frame) button:SetScript("OnEnter", OnEnter) button:SetScript("OnLeave", OnLeave) + button:HookScript("OnClick", OnClick) return button end @@ -127,9 +128,6 @@ function SLE:DropDown(list, frame, MenuAnchor, FramePoint, xOffset, yOffset, par else SLE:ErrorPrint("Wrong argument for button type: "..btn.secure.buttonType) end - btn:HookScript("OnClick", OnClick) - else - btn:SetScript("OnClick", OnClick) end btn.UseTooltip = list[i].UseTooltip if list[i].TooltipText then btn.TooltipText = list[i].TooltipText end -- 1.7.9.5