mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Tooltip formatting fix
This commit is contained in:
parent
0bd3dcec39
commit
b8c0787dfa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user