From 034e4bb88a7234671b1099e8f62fff8748fc269c Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Wed, 6 Apr 2022 12:30:24 +0200 Subject: [PATCH] chore: fix h-output helper for demos --- docs/fundamentals/systems/form/assets/h-output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/systems/form/assets/h-output.js b/docs/fundamentals/systems/form/assets/h-output.js index 6b3236601..7b159b685 100644 --- a/docs/fundamentals/systems/form/assets/h-output.js +++ b/docs/fundamentals/systems/form/assets/h-output.js @@ -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);