Nipur
Nipur
Problem using Tagify on boilerplate
I already solved it! The solution was to add the render hook in the main.mjs file. For example: Hooks.on("renderPanRpgItemSheet", (app, html, data) => { if (app.document.type === "armor") { const tagInput = html.querySelector("#tag-input"); if (tagInput && !tagInput.dataset.tagifyInitialized) { new Tagify(tagInput, { whitelist: ["armor", "shield", "light", "medium", "heavy"], dropdown: { maxItems: 10, enabled: 0, closeOnSelect: false } }); tagInput.dataset.tagifyInitialized = "true"; } } }); I'm sharing the solution in case anyone else encounters the same issue.
2 replies