bfg-common 1.5.404 → 1.5.406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,14 +98,14 @@ const onShowTooltip = (): void => {
|
|
98
98
|
if (isTooltipOpen && process.client) {
|
99
99
|
// Перед открытием текущего тултипа отправляем событие, чтобы все остальные экземпляры закрылись
|
100
100
|
window.dispatchEvent(
|
101
|
-
new CustomEvent<string>('tooltip-open', { detail: props.
|
101
|
+
new CustomEvent<string>('tooltip-open', { detail: props.helpId })
|
102
102
|
)
|
103
103
|
}
|
104
104
|
isShowTooltip.value = isTooltipOpen
|
105
105
|
}
|
106
106
|
const closeOtherTooltips = (event: Event): void => {
|
107
107
|
const activeTooltipId = (event as CustomEvent<string>).detail
|
108
|
-
if (activeTooltipId !== props.
|
108
|
+
if (activeTooltipId !== props.helpId && isShowTooltip.value) {
|
109
109
|
isShowTooltip.value = false
|
110
110
|
}
|
111
111
|
}
|