chore: fix h-output helper for demos

This commit is contained in:
Thijs Louisse 2022-04-06 12:30:24 +02:00
parent 5ab5e8e68c
commit 034e4bb88a

View file

@ -76,7 +76,7 @@ export class HelperOutput extends LitElement {
}
this.__rerender = this.__rerender.bind(this);
const storyRoot = this.field.closest('[mdjs-story-name]') || this.parentElement;
const storyRoot = this.closest('[mdjs-story-name]') || this.parentElement;
storyRoot.addEventListener('model-value-changed', this.__rerender);
storyRoot.addEventListener('mousemove', this.__rerender);