Skip to content

Commit

Permalink
Avoid errors from ContainerFrame.lua
Browse files Browse the repository at this point in the history
Make our button proxy an actual button frame so ContainerFrameItemButton_OnEnter() doesn't get mad.
  • Loading branch information
veechs committed Feb 22, 2025
1 parent 3745889 commit 3f4e9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Components/Inventory.Ui.ItemButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function InventoryUi:CreateInventoryItemSlotButton(buttonNum)

-- Proxy for `slotButton` that was created above.
-- Will override `GetID()` and `GetParent()`.
local slotButtonProxy = _G.CreateFrame("Frame")
local slotButtonProxy = _G.CreateFrame("Button")
-- Store the proxy so it can be used by `Inventory:ItemButton_OnClick/OnEnter()`
slotButton.bagshuiData.getIdProxy = slotButtonProxy
-- Proxy for `slotButton`'s parent frame.
Expand Down

0 comments on commit 3f4e9fc

Please sign in to comment.