You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Remove tooltipClassName from the Field's input
React doesn't want the property on the <input>, so we'll take it off.
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user