Skip to content
Snippets Groups Projects
Commit 1a1ff2d2 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use unsafeHTML() for our table element

I hope this prevents lit-html from replacing the DOM which datatables
changes.
parent 10909ec5
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ import {i18n} from './i18n'; ...@@ -7,6 +7,7 @@ import {i18n} from './i18n';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import JSONLD from 'vpu-common/jsonld'; import JSONLD from 'vpu-common/jsonld';
import commonUtils from 'vpu-common/utils'; import commonUtils from 'vpu-common/utils';
import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
dt(window, $); dt(window, $);
resp(window, $); resp(window, $);
...@@ -242,7 +243,7 @@ class DataTableView extends LitElement { ...@@ -242,7 +243,7 @@ class DataTableView extends LitElement {
} }
</style> </style>
<div id="dt-parent"> <div id="dt-parent">
<table id="dt" class="display"></table> ${unsafeHTML('<div><table id="dt" class="display"></table></div>')}
<div id="cover"></div> <div id="cover"></div>
</div> </div>
`; `;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment