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

common demo: fix loading button never stopping

Because we now use scoped elements and we looked for the static name
instead of the dynamically generated one in the DOM.
parent 38103192
No related branches found
No related tags found
No related merge requests found
Pipeline #13961 passed
......@@ -87,7 +87,8 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) {
buttonClickHandler() {
setTimeout(() => {
this.shadowRoot.querySelector("dbp-button").stop();
const scopedTagName = this.constructor.getScopedTagName('dbp-button');
this.shadowRoot.querySelector(scopedTagName).stop();
}, 1000);
}
......
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