Fix formatting error in Tooltip.tsx

Prettier is acting differently on different systems.
This commit is contained in:
David Wheatley 2021-05-12 23:14:50 +01:00
parent d7648102a9
commit 9dca657edf
No known key found for this signature in database
GPG Key ID: B170DD2969F9DBEB

View File

@ -233,9 +233,8 @@ export default class Tooltip extends Component<TooltipAttrs> {
text,
} = this.attrs;
const trigger = (typeof tooltipVisible === 'boolean'
? 'manual'
: classList('hover', [showOnFocus && 'focus'])) as TooltipCreationOptions['trigger'];
// Fancy "hack" to assemble the trigger string
const trigger = typeof tooltipVisible === 'boolean' ? 'manual' : classList('hover', [showOnFocus && 'focus']);
const realText = this.getRealText();
this.childDomNode.setAttribute('title', realText);
@ -247,7 +246,6 @@ export default class Tooltip extends Component<TooltipAttrs> {
html,
delay,
placement: position,
// Fancy "hack" to assemble the trigger string
trigger,
},
// @ts-expect-error We don't want this arg to be part of the public API. It only exists to prevent deprecation warnings when using `$.tooltip` in this component.