I've got a Dialog with a file input, and the Dialog uses a handlebars template. How do I get the Dialog template to rerender/update after files have been selected and parsed?
Here's what I have under render for the Dialog.
render: async html => {
let fileInput = document.querySelector('#savaged-json-files')
fileInput.addEventListener('change', async (event) => {
files = event.target.files
const characters = []
for (const file of files) {
let json = file.text()
let stringData = JSON.parse(json)
characters.push(stringData)
}
// Update the dialog template here
})
}