mirror of
https://github.com/flarum/core.git
synced 2025-06-10 08:35:48 +02:00
Tooltip formatting fix
This commit is contained in:
parent
2075c7319f
commit
bba6485eff
@ -233,9 +233,9 @@ export default class Tooltip extends Component<TooltipAttrs> {
|
|||||||
text,
|
text,
|
||||||
} = this.attrs;
|
} = this.attrs;
|
||||||
|
|
||||||
const trigger = (
|
const trigger = (typeof tooltipVisible === 'boolean'
|
||||||
typeof tooltipVisible === 'boolean' ? 'manual' : classList('hover', [showOnFocus && 'focus'])
|
? 'manual'
|
||||||
) as TooltipCreationOptions['trigger'];
|
: classList('hover', [showOnFocus && 'focus'])) as TooltipCreationOptions['trigger'];
|
||||||
|
|
||||||
const realText = this.getRealText();
|
const realText = this.getRealText();
|
||||||
this.childDomNode.setAttribute('title', realText);
|
this.childDomNode.setAttribute('title', realText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user