From c32272239eb2d5fa59b83539344c4ba0314d9a4e Mon Sep 17 00:00:00 2001 From: glebkostin Date: Mon, 27 May 2024 11:16:34 +0300 Subject: [PATCH] =?UTF-8?q?HAR-146:=20=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/features/listBlock/ui/listBlock.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/features/listBlock/ui/listBlock.js b/source/features/listBlock/ui/listBlock.js index defbd45..6c3784e 100644 --- a/source/features/listBlock/ui/listBlock.js +++ b/source/features/listBlock/ui/listBlock.js @@ -10,9 +10,11 @@ export class ListBlockView extends View { } addRender(objects, RenderEntity, ...args) { + this.root.innerHTML += listBlockTemplate({objects}); const prefix = '#list-item-'; for (let i = this.id; i < this.id + objects.length; ++i) { const root = document.querySelector(prefix + i); + console.log(root); const entity = new RenderEntity(root); entity.render(objects[i], ...args);