mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 17:23:44 +08:00
13 lines
479 B
JavaScript
13 lines
479 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 commong 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;
|
||
|
}
|