Skip to content

Commit

Permalink
fix(framework): StaticArea and StaticAreaElement identify as UI5Eleme…
Browse files Browse the repository at this point in the history
…nt (#1168)
  • Loading branch information
vladitasev committed Jan 31, 2020
1 parent 90223f8 commit 28f827a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/base/src/StaticArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class StaticAreaElement extends HTMLElement {
super();
}

get isUI5Element() {
return true;
}

destroy() {
const staticAreaDomRef = document.querySelector(this.tagName.toLowerCase());
staticAreaDomRef.parentElement.removeChild(staticAreaDomRef);
Expand Down
4 changes: 4 additions & 0 deletions packages/base/src/StaticAreaItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class StaticAreaItemElement extends HTMLElement {
constructor() {
super();
}

get isUI5Element() {
return true;
}
}

customElements.define("ui5-static-area-item", StaticAreaItemElement);
Expand Down

0 comments on commit 28f827a

Please sign in to comment.