From 88b71b747490f97d4e123e908e66f461ab122e4a Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sun, 20 Aug 2023 07:20:24 +0100 Subject: :bug: Fixed bug caused by rendering an element with a different tag than the initial root element. --- lib/src/lustre.ffi.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/src') diff --git a/lib/src/lustre.ffi.mjs b/lib/src/lustre.ffi.mjs index 9181fd5..b0f4661 100644 --- a/lib/src/lustre.ffi.mjs +++ b/lib/src/lustre.ffi.mjs @@ -84,7 +84,7 @@ export class App { const node = this.#view(this.#state); const vdom = map(node, (msg) => this.dispatch(msg)); - morph(this.#root, vdom); + this.#root = morph(this.#root, vdom); } #tick() { -- cgit v1.2.3