Skip to content

Commit

Permalink
fix refresh function element prefix (when looking for child elements …
Browse files Browse the repository at this point in the history
…to refresh as well)
  • Loading branch information
brookgagnon committed Aug 31, 2024
1 parent a2d2360 commit be67a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/base/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class OBElement extends HTMLElement {

// look for any child elements starting with app- and refresh them also
this.querySelectorAll("*").forEach((element) => {
if (element.tagName.startsWith("APP-")) {
if (element.tagName.startsWith("OB-")) {
if (element.refresh && typeof element.refresh == "function") {
element.refresh();
} else {
Expand All @@ -60,7 +60,7 @@ export class OBElement extends HTMLElement {

if (this.shadowRoot) {
this.shadowRoot.querySelectorAll("*").forEach((element) => {
if (element.tagName.startsWith("APP-")) {
if (element.tagName.startsWith("OB-")) {
if (element.refresh && typeof element.refresh == "function") {
element.refresh();
} else {
Expand Down

0 comments on commit be67a11

Please sign in to comment.