mirror of https://github.com/vector-im/riot-web
Merge pull request #3333 from matrix-org/travis/fix-tooltip
Remove tooltipClassName from the Field's inputpull/21833/head
commit
efe8254985
|
@ -144,7 +144,7 @@ export default class Field extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
element, prefix, onValidate, children, tooltipContent, flagInvalid,
|
element, prefix, onValidate, children, tooltipContent, flagInvalid,
|
||||||
...inputProps} = this.props;
|
tooltipClassName, ...inputProps} = this.props;
|
||||||
|
|
||||||
const inputElement = element || "input";
|
const inputElement = element || "input";
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ export default class Field extends React.PureComponent {
|
||||||
const Tooltip = sdk.getComponent("elements.Tooltip");
|
const Tooltip = sdk.getComponent("elements.Tooltip");
|
||||||
let fieldTooltip;
|
let fieldTooltip;
|
||||||
if (tooltipContent || this.state.feedback) {
|
if (tooltipContent || this.state.feedback) {
|
||||||
const addlClassName = this.props.tooltipClassName ? this.props.tooltipClassName : '';
|
const addlClassName = tooltipClassName ? tooltipClassName : '';
|
||||||
fieldTooltip = <Tooltip
|
fieldTooltip = <Tooltip
|
||||||
tooltipClassName={`mx_Field_tooltip ${addlClassName}`}
|
tooltipClassName={`mx_Field_tooltip ${addlClassName}`}
|
||||||
visible={this.state.feedbackVisible}
|
visible={this.state.feedbackVisible}
|
||||||
|
|
Loading…
Reference in New Issue