@@ -271,6 +271,10 @@ function bagFrame.bagProto:Show(ctx)
271271 if addon .atWarbank then
272272 self :HideBankAndReagentTabs ()
273273 self .tabs :SetTabByID (ctx , 13 )
274+ -- Set the active bank type for warbank
275+ if BankPanel then
276+ BankPanel .bankType = Enum .BankType .Account
277+ end
274278 else
275279 self :ShowBankAndReagentTabs ()
276280 -- Set first tab when using multiple character bank tabs
@@ -283,6 +287,10 @@ function bagFrame.bagProto:Show(ctx)
283287 self .bankTab = addon .isRetail and Enum .BagIndex .Bank or Enum .BagIndex .Characterbanktab
284288 self .tabs :SetTabByID (ctx , 1 )
285289 end
290+ -- Set the active bank type for character bank
291+ if BankPanel then
292+ BankPanel .bankType = Enum .BankType .Character
293+ end
286294 end
287295 self .moneyFrame :Update ()
288296 end
@@ -467,6 +475,10 @@ function bagFrame.bagProto:SwitchToBank(ctx)
467475 self .currentItemCount = - 1
468476 BankFrame .activeTabIndex = 1
469477 BankPanel .selectedTabID = nil
478+ -- Set the active bank type so right-click item movement works correctly
479+ if addon .isRetail and BankPanel then
480+ BankPanel .bankType = Enum .BankType .Character
481+ end
470482 -- Clear bank cache to ensure clean state
471483 items :ClearBankCache (ctx )
472484 self :Wipe (ctx )
@@ -486,6 +498,10 @@ function bagFrame.bagProto:SwitchToCharacterBankTab(ctx, tabID)
486498 BankFrame .selectedTab = 1
487499 BankFrame .activeTabIndex = 1
488500 BankPanel .selectedTabID = nil
501+ -- Set the active bank type so right-click item movement works correctly
502+ if addon .isRetail and BankPanel then
503+ BankPanel .bankType = Enum .BankType .Character
504+ end
489505 self :SetTitle (format (L :G (" Bank Tab %d" ), tabID - const .BANK_ONLY_BAGS_LIST [1 ] + 1 ))
490506 self .currentItemCount = - 1
491507 -- Clear bank cache to ensure no items from other tabs remain
@@ -507,6 +523,10 @@ function bagFrame.bagProto:SwitchToAccountBank(ctx, tabIndex)
507523 self .bankTab = tabIndex
508524 BankFrame .selectedTab = 1
509525 BankFrame .activeTabIndex = 3
526+ -- Set the active bank type so right-click item movement works correctly
527+ if addon .isRetail and BankPanel then
528+ BankPanel .bankType = Enum .BankType .Account
529+ end
510530 local tabData = C_Bank .FetchPurchasedBankTabData (Enum .BankType .Account )
511531 for _ , data in pairs (tabData ) do
512532 if data .ID == tabIndex then
@@ -535,6 +555,10 @@ function bagFrame.bagProto:SwitchToBankAndWipe(ctx)
535555 self .bankTab = addon .isRetail and Enum .BagIndex .Bank or Enum .BagIndex .Characterbanktab
536556 BankFrame .selectedTab = 1
537557 BankFrame .activeTabIndex = 1
558+ -- Set the active bank type so right-click item movement works correctly
559+ if addon .isRetail and BankPanel then
560+ BankPanel .bankType = Enum .BankType .Character
561+ end
538562 self :SetTitle (L :G (" Bank" ))
539563 items :ClearBankCache (ctx )
540564 self :Wipe (ctx )
0 commit comments