Skip to content
Snippets Groups Projects
Commit c1aee1bf authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Fix test

parent 8b56c708
No related branches found
No related tags found
No related merge requests found
Pipeline #213059 failed
......@@ -17,7 +17,10 @@ export default (async () => {
return {
input:
build !== 'test'
? ['src/demo.js', 'src/dbp-tabulator-table.js']
? [
'src/demo.js',
'src/dbp-tabulator-table.js'
]
: glob.sync('test/**/*.js'),
output: {
dir: 'dist',
......
......@@ -66,8 +66,10 @@ export class TabulatorTable extends ScopedElementsMixin(DBPLitElement) {
}
disconnectedCallback() {
this.tabulatorTable.off("tableBuilt");
this.tabulatorTable.off("rowClick");
if (this.tabulatorTable) {
this.tabulatorTable.off("tableBuilt");
this.tabulatorTable.off("rowClick");
}
super.disconnectedCallback();
}
......
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