From fc4ec3e332a462b6e59d65c20564ebcfad3381cd Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Thu, 14 Sep 2023 12:36:35 +0530 Subject: [PATCH] Updated the forms code --- blocks/forms/forms.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/forms/forms.js b/blocks/forms/forms.js index bbdaa7d..fa376da 100644 --- a/blocks/forms/forms.js +++ b/blocks/forms/forms.js @@ -2,7 +2,7 @@ import { createOptimizedPicture } from '../../scripts/lib-franklin.js'; export default function decorate(block) { console.log(block); - const element = createElement('div'); + const element = document.createElement('div'); element.innerHTML = ` `; + block.append(element); // const ul = document.createElement('ul'); // [...block.children].forEach((row) => { // const li = document.createElement('li');