discourse/app/assets/javascripts/float-kit/addon/services/internal-tooltip.js
Jarek Radosz f14cf4f8a9
DEV: Fix random typos (#28103)
July 2024 edition
2024-07-26 23:13:12 +02:00

13 lines
478 B
JavaScript

import { tracked } from "@glimmer/tracking";
import Service from "@ember/service";
/*
This service holds the current tooltip displayed when using <DTooltip> component.
All of these tooltips share a common portal outlet element, which means
we have to ensure we close them before their html is replaced, otherwise
we end up with a detached element in the DOM and unexpected behavior.
*/
export default class InternalTooltip extends Service {
@tracked activeTooltip;
}