mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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;
|
||||
this._tippyInstance = tippy(parent, {
|
||||
content: element,
|
||||
trigger: this.capabilities.touch ? "click" : "mouseenter",
|
||||
theme: "d-tooltip",
|
||||
arrow: false,
|
||||
placement: "bottom-start",
|
||||
|
Loading…
Reference in New Issue
Block a user