foundryvtt
foundryvtt copied to clipboard
Force closing already closed app (v1) throws an error about querySelector of undefined
Originally reported by manaflower
ALL MODULES DISABLED? true OS, Hosting, Browser (if applicable): any Short Description of bug: Force closing already closed app (v1) throws an error about querySelector of undefined. Simple steps to reproduce the bug:
await app.close();
app.close({force:true});
Screenshots and/or console errors:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'querySelectorAll')
Error site is specifically this line in close()
for ( const fp of this.element[0].querySelectorAll("file-picker") ) fp.picker?.close();