zeel01 / MonsterBlocks

A Foundry VTT module to add NPC sheets that faithfully reproduce the appearance of D&D 5e monster statblocks.
29 stars 26 forks source link

Can minimize but not re-open a block #217

Closed kschutter closed 8 months ago

kschutter commented 1 year ago

Double clicking the title bar minimized it to just the title bar, as expected, but double clicking said title bar does not reopen the block

niborbb commented 11 months ago

To add a little more context: If you try to reopen a sheet by double-clicking on it, it just logs the full data to the console, which means that getData() of MonsterBlock5e.js is called at some point. This was added during the last merge by @evan-rash. Sorry for the ping, since you wrote the code for v11 support (during which you added that console log), maybe you have an idea why this is not working as intended and maybe even a possible fix? Just to be clear, there is no error message. Apart from the aforementioned log of that sheet data in the console nothing happens when you try to reopen the minimized sheet.

zeel01 commented 9 months ago

It's re-rendering the sheet, but not changing the state for some reason. Requires more investigation.

zeel01 commented 8 months ago

Resolved via 3f70a28