Change the default bringToFront behaviour to not do it automatically
This commit is contained in:
parent
497756e8b1
commit
0c39efe32f
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ export function GenericAppMixin(HandlebarsApp) {
|
||||||
async render(options = {}, _options = {}) {
|
async render(options = {}, _options = {}) {
|
||||||
super.render(options, _options);
|
super.render(options, _options);
|
||||||
const instance = foundry.applications.instances.get(this.id);
|
const instance = foundry.applications.instances.get(this.id);
|
||||||
if (instance !== undefined && !options.noBringToFront) {
|
if (instance !== undefined && options.orBringToFront) {
|
||||||
instance.bringToFront();
|
instance.bringToFront();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export async function editItemFromElement(target) {
|
||||||
const itemId = itemEl.dataset.itemId;
|
const itemId = itemEl.dataset.itemId;
|
||||||
if (!itemId) { return };
|
if (!itemId) { return };
|
||||||
const item = await fromUuid(itemId);
|
const item = await fromUuid(itemId);
|
||||||
item.sheet.render({ force: true });
|
item.sheet.render({ force: true, orBringToFront: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue