foundryvtt icon indicating copy to clipboard operation
foundryvtt copied to clipboard

Force closing already closed app (v1) throws an error about querySelector of undefined

Open stwlam opened this issue 4 months ago • 0 comments

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();

stwlam avatar Oct 24 '24 18:10 stwlam