Seniru / merchant

The repository of the transformice module merchant
Apache License 2.0
4 stars 4 forks source link

Unexpected behaviour on closing windows #61

Closed Seniru closed 4 years ago

Seniru commented 4 years ago

The normal way to close the window is by clicking the red X icon on the top right corner of a window. After clicking it should close the main and the other parts (tabs or naviagations) of the window for the player who clicked it. The problem is that, the close button closes the main window for all the players except the one that clicked it. More surprisinly, it doesn't close other parts (only for other players) This behaviour is normal if I've passed nil value as the second argument for ui.removeTextArea method. But it is not

Here is what is look like

function eventTextAreaCallback(id, name, evt)
-- ...
  if evt == "close" then
    ui.removeTextArea(id, name)
    print(name) -- For me it's King_seniru#5890
   -- handling other parts (which works fine)
  end
-- ...
end

Reference

Steps to reproduce