ingame/inventory/inventory.lua:2518 -- guildBankScene:RegisterCallback("StateChange", function(oldState, newState)
if(newState == SCENE_SHOWING) then
self:UpdateFreeSlots(INVENTORY_BACKPACK)
guildBankFragmentBar:SelectFragment(SI_BANK_WITHDRAW)
ZO_SharedInventory_SelectAccessibleGuildBank(self.lastSuccessfulGuildBankId)
elseif(newState == SCENE_HIDDEN) then
guildBankFragmentBar:Clear()
ZO_InventorySlot_RemoveMouseOverKeybinds()
ZO_PlayerInventory_EndSearch(ZO_PlayerBankSearchBox)
end
end)