Affichage de dialog en 2 temps

Sinon, la touche entrée est appliqué sur une commande et ferme
le dialogue
This commit is contained in:
Vincent Vandemeulebrouck
2022-11-13 21:57:18 +01:00
parent ccb6709f5b
commit bcd25dd0ed
2 changed files with 5 additions and 4 deletions

View File

@ -3,9 +3,9 @@ import { Misc } from "./misc.js";
export class DialogRepos extends Dialog {
static async create(actor) {
let actorData = actor
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actorData);
new DialogRepos(html, actor).render(true);
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/dialog-repos.html", actor);
const dialog = new DialogRepos(html, actor);
dialog.render(true);
}
constructor(html, actor) {