Cleanup tooltip classnames

pull/21833/head
Jorik Schellekens 2020-06-23 13:38:50 +01:00
parent 7bc5ce7271
commit 680e997a94
1 changed files with 1 additions and 2 deletions

View File

@ -244,9 +244,8 @@ export default class Field extends React.PureComponent<PropShapes, IState> {
const Tooltip = sdk.getComponent("elements.Tooltip");
let fieldTooltip;
if (tooltipContent || this.state.feedback) {
const addClassName = tooltipClassName ? tooltipClassName : '';
fieldTooltip = <Tooltip
tooltipClassName={`mx_Field_tooltip ${addClassName}`}
tooltipClassName={classNames("mx_Field_tooltip", tooltipClassName)}
visible={(this.state.focused && this.props.forceTooltipVisible) || this.state.feedbackVisible}
label={tooltipContent || this.state.feedback}
/>;