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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user