Change the default bringToFront behaviour to not do it automatically

This commit is contained in:
Oliver-Akins 2025-01-26 14:52:37 -07:00
parent 497756e8b1
commit 0c39efe32f
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ export function GenericAppMixin(HandlebarsApp) {
async render(options = {}, _options = {}) {
super.render(options, _options);
const instance = foundry.applications.instances.get(this.id);
if (instance !== undefined && !options.noBringToFront) {
if (instance !== undefined && options.orBringToFront) {
instance.bringToFront();
};
};

View file

@ -11,7 +11,7 @@ export async function editItemFromElement(target) {
const itemId = itemEl.dataset.itemId;
if (!itemId) { return };
const item = await fromUuid(itemId);
item.sheet.render({ force: true });
item.sheet.render({ force: true, orBringToFront: true });
};
/**