Skip to content

[TextField] Custom value for attribute componentId don't work in TextField #3895

Description

@IASamoylov

Bug Report

  • Package version(s): 5.24.0
  • Browser and OS versions: all

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (Yes)

Requested priority: Normal

Describe the issue:

In Docs props ITextFieldProps contains attribute "componentId", but in component TextField attribute "componentId" always replaced of the this._id (line 151)

Actual behavior:

const renderProps: ITextFieldProps = { ...this.props, componentId: this._id };

Expected behavior:

let {
    componentId = this._id
} = this.props;

const renderProps: ITextFieldProps = { ...this.props, componentId };

If applicable, please provide a codepen repro:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions