Skip to content

Commit

Permalink
After QA
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Sep 18, 2024
1 parent e3a3fc6 commit 6b6225b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ 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) {
setPanelContentMaxHeight(this.balloon.view);
}

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

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

isCustomTagSelected(eventData) {
Expand Down

0 comments on commit 6b6225b

Please sign in to comment.