Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputText: ui-state-filled class is not added, if value chaged in parent component #195

Closed
RushPVA opened this issue Nov 30, 2017 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@RushPVA
Copy link

RushPVA commented Nov 30, 2017

Example:
employeeFilter is changed in componentDidMount
but ui-state-filled class is not added to InputText

export class EmployeeList extends Component {
  state = {
    employeeFilter: ''
  };

  componentDidMount() {
     this.setState({employeeFilter: "123"});
  }

  render() {
    return <div className="ui-g ui-fluid">
      <div className="ui-g form-group">
        <div className="ui-g-12 `ui-md-4">
          <span className="md-inputfield">
              <InputText  value={this.state.employeeFilter} onChange={(e) => this.setState({employeeFilter: e.target.value})} />
              <label>Name</label>
          </span>
        </div>
      </div>
  </div>
}
}

this affects ultima theme
http://prntscr.com/hhdmhy

@Merve7 Merve7 closed this as completed in 9305031 Dec 1, 2017
@Merve7 Merve7 self-assigned this Dec 1, 2017
@Merve7 Merve7 added the Type: Bug Issue contains a defect related to a specific component. label Dec 1, 2017
@Merve7 Merve7 added this to the 1.2.1 milestone Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants