Merge pull request #3333 from matrix-org/travis/fix-tooltip

Remove tooltipClassName from the Field's input
pull/21833/head
Travis Ralston 2019-08-22 08:40:23 -06:00 committed by GitHub
commit efe8254985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ export default class Field extends React.PureComponent {
render() {
const {
element, prefix, onValidate, children, tooltipContent, flagInvalid,
...inputProps} = this.props;
tooltipClassName, ...inputProps} = this.props;
const inputElement = element || "input";
@ -180,7 +180,7 @@ export default class Field extends React.PureComponent {
const Tooltip = sdk.getComponent("elements.Tooltip");
let fieldTooltip;
if (tooltipContent || this.state.feedback) {
const addlClassName = this.props.tooltipClassName ? this.props.tooltipClassName : '';
const addlClassName = tooltipClassName ? tooltipClassName : '';
fieldTooltip = <Tooltip
tooltipClassName={`mx_Field_tooltip ${addlClassName}`}
visible={this.state.feedbackVisible}