fix(dialogs): évite bringToFront du dialog lors du re-render hook

Le hook updateItem/createItem/deleteItem appelait render(true)
déclenchant bringToFront() (ligne 598 ApplicationV2) qui
passait le dialog devant la fiche item ouverte. Utilise
render() sans force pour re-rendre sans changer le z-index.
This commit is contained in:
fabres
2026-07-22 00:29:56 +02:00
parent d06f1de433
commit 27b232776c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export class DialogGererHerbes extends HandlebarsApplicationMixin(ApplicationV2)
super(options)
this.actor = options.actor
this._onItemChange = (item) => {
if (item.parent === this.actor) this.render(true)
if (item.parent === this.actor) this.render()
}
Hooks.on("updateItem", this._onItemChange)
Hooks.on("createItem", this._onItemChange)
+1 -1
View File
@@ -35,7 +35,7 @@ export class DialogGererIngredients extends HandlebarsApplicationMixin(Applicati
super(options)
this.actor = options.actor
this._onItemChange = (item) => {
if (item.parent === this.actor) this.render(true)
if (item.parent === this.actor) this.render()
}
Hooks.on("updateItem", this._onItemChange)
Hooks.on("createItem", this._onItemChange)
+1 -1
View File
@@ -35,7 +35,7 @@ export class DialogGererPotions extends HandlebarsApplicationMixin(ApplicationV2
super(options)
this.actor = options.actor
this._onItemChange = (item) => {
if (item.parent === this.actor) this.render(true)
if (item.parent === this.actor) this.render()
}
Hooks.on("updateItem", this._onItemChange)
Hooks.on("createItem", this._onItemChange)