discourse/frontend/float-kit/addon/services/internal-tooltip.js
David Taylor d1e1c02fcb DEV: Rename app/assets/javascripts/ -> frontend/
Commit created with `mv app/assets/javascripts frontend && git add .`
2025-10-22 16:24:11 +01:00

12 lines
478 B
JavaScript
Vendored

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;
}