From d06f4c33f35d5e98c757771fa08b17bb0354b1a2 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Fri, 24 Sep 2021 17:31:39 +0200 Subject: [PATCH] Fix HTMLTemplateFormatter on Tabulator (#2781) * Fix HTMLTemplateFormatter on Tabulator * Fix whitespace * Remove console.log * More whitespace --- panel/models/tabulator.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panel/models/tabulator.ts b/panel/models/tabulator.ts index b1beab112c..77af2cecdb 100644 --- a/panel/models/tabulator.ts +++ b/panel/models/tabulator.ts @@ -340,6 +340,8 @@ export class DataTabulatorView extends PanelHTMLBoxView { else { tab_column.formatter = (cell: any) => { const formatted = column.formatter.doFormat(cell.getRow(), cell, cell.getValue(), null, null) + if (column.formatter.type === 'HTMLTemplateFormatter') + return formatted const node = div() node.innerHTML = formatted return node.children[0].innerHTML