We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b3a7a6 + 69ba7b0 commit ae77bbcCopy full SHA for ae77bbc
src/scripts/OSFramework/OSUI/Feature/Balloon/Balloon.ts
@@ -48,9 +48,12 @@ namespace OSFramework.OSUI.Feature.Balloon {
48
49
// Method to handle the body click callback, that closes the Balloon
50
private _bodyClickCallback(_args: string, e: MouseEvent): void {
51
- if (e.target === this.featureOptions?.anchorElem || this._isOpenedByApi) {
+ const _eventTarget = e.target;
52
+
53
+ if (_eventTarget === this.featureOptions?.anchorElem || this._isOpenedByApi || this.featureElem.contains(_eventTarget as HTMLElement)) {
54
return;
55
}
56
57
if (this.isOpen) {
58
this._toggleBalloon(false, true);
59
e.stopPropagation();
0 commit comments