Skip to content
Snippets Groups Projects
Unverified Commit c8094786 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Dispatch dbp-set-property event to parent (if any) so that current element...

Dispatch dbp-set-property event to parent (if any) so that current element doesn't terminate event if it has the attribute set itself (#48)
parent 133943ac
No related branches found
No related tags found
No related merge requests found
......@@ -317,7 +317,11 @@ export class AdapterLitElement extends LitElement {
detail: {'name': name, 'value': value}
});
return this.dispatchEvent(event);
// dispatch the dbp-set-property event to the parent (if there is any) so that the current element
// doesn't terminate the event if it has the attribute set itself
const element = this.parentElement ? this.parentElement : this;
return element.dispatchEvent(event);
}
// update(changedProperties) {
......
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