Skip to content

Commit

Permalink
After CR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Sep 19, 2024
1 parent 73c6307 commit 540253b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,19 @@ class IbexaCustomTagUI extends Plugin {
this.addCustomTag = this.addCustomTag.bind(this);

this.isNew = false;
this.lastClassListValue = null;
this.observer = new MutationObserver((mutationList) => {
for (const mutation of mutationList) {
if (this.lastClassListValue !== mutation.target.classList.value) {
if (this.lastClassListValue !== null) {
if (mutation.attributeName === "class") {
if (mutation.oldValue !== mutation.target.classList.value) {
setPanelContentMaxHeight(this.balloon.view);
}

this.lastClassListValue = mutation.target.classList.value;
}
}
});

this.observer.observe(this.balloon.view.element, {
attributes: true,
attributeOldValue: true,
});
}

Expand Down

0 comments on commit 540253b

Please sign in to comment.