From 9aaf77eb7df2b7d67c64bf0f6b6d04c842ca3433 Mon Sep 17 00:00:00 2001 From: Matthias risto Date: Tue, 17 Sep 2024 19:27:01 +0200 Subject: [PATCH] fix: check for selected block type with index --- .../bna-block-type-select.component.html | 8 ++++-- .../bna-block-type-select.component.ts | 26 ++++++++++--------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/libs/ngx-blocknote/src/lib/components/formatting-toolbar/default-selects/block-type-select/bna-block-type-select.component.html b/libs/ngx-blocknote/src/lib/components/formatting-toolbar/default-selects/block-type-select/bna-block-type-select.component.html index 9bc6fbf..b04ba4a 100644 --- a/libs/ngx-blocknote/src/lib/components/formatting-toolbar/default-selects/block-type-select/bna-block-type-select.component.html +++ b/libs/ngx-blocknote/src/lib/components/formatting-toolbar/default-selects/block-type-select/bna-block-type-select.component.html @@ -17,13 +17,17 @@
- @for (blockType of filteredBlockTypes(); track blockType.name) { + @for ( + blockType of filteredBlockTypes(); + track blockType.name; + let index = $index + ) {