Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8824: The popup for custom tags with multiple fields is not scrollable #183

Merged
merged 11 commits into from
Sep 30, 2024
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Loading