FEATURE: Allow DTooltip interaction (#20169)
This commit is contained in:
parent
8b4d571b9b
commit
9e1fcb2a79
|
@ -5,6 +5,7 @@ import Ember from "ember";
|
|||
|
||||
export default class DiscourseTooltip extends Component {
|
||||
tagName = "";
|
||||
interactive = false;
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
@ -24,7 +25,9 @@ export default class DiscourseTooltip extends Component {
|
|||
const viewBounds = Ember.ViewUtils.getViewBounds(this);
|
||||
const element = viewBounds.firstNode;
|
||||
const parent = viewBounds.parentElement;
|
||||
const interactive = this.interactive;
|
||||
this._tippyInstance = tippy(parent, {
|
||||
interactive,
|
||||
content: element,
|
||||
trigger: this.capabilities.touch ? "click" : "mouseenter",
|
||||
theme: "d-tooltip",
|
||||
|
|
Loading…
Reference in New Issue