UX: trigger tooltips on click for touch devices (#18198)
This commit is contained in:
parent
761864d4f4
commit
dacdec5acc
|
@ -26,6 +26,7 @@ export default class DiscourseTooltip extends Component {
|
||||||
const parent = viewBounds.parentElement;
|
const parent = viewBounds.parentElement;
|
||||||
this._tippyInstance = tippy(parent, {
|
this._tippyInstance = tippy(parent, {
|
||||||
content: element,
|
content: element,
|
||||||
|
trigger: this.capabilities.touch ? "click" : "mouseenter",
|
||||||
theme: "d-tooltip",
|
theme: "d-tooltip",
|
||||||
arrow: false,
|
arrow: false,
|
||||||
placement: "bottom-start",
|
placement: "bottom-start",
|
||||||
|
|
Loading…
Reference in New Issue