1
0
mirror of https://github.com/flarum/core.git synced 2025-06-01 03:55:13 +02:00

Tooltip formatting fix

This commit is contained in:
Alexander Skvortsov 2021-05-11 23:55:52 -04:00
parent 2075c7319f
commit bba6485eff

View File

@ -233,9 +233,9 @@ export default class Tooltip extends Component<TooltipAttrs> {
text,
} = this.attrs;
const trigger = (
typeof tooltipVisible === 'boolean' ? 'manual' : classList('hover', [showOnFocus && 'focus'])
) as TooltipCreationOptions['trigger'];
const trigger = (typeof tooltipVisible === 'boolean'
? 'manual'
: classList('hover', [showOnFocus && 'focus'])) as TooltipCreationOptions['trigger'];
const realText = this.getRealText();
this.childDomNode.setAttribute('title', realText);