Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 13, 2020
1 parent 13f4d45 commit a51fc45
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export class ValidatedDualRange extends Component<Props> {
return null;
}

// @ts-ignore state populated by getDerivedStateFromProps
state: State = {};
state!: State;

_onChange = (value: Value) => {
const { isValid, errorMessage } = isRangeValid(
Expand Down Expand Up @@ -99,7 +98,6 @@ export class ValidatedDualRange extends Component<Props> {
value, // eslint-disable-line no-unused-vars
onChange, // eslint-disable-line no-unused-vars
allowEmptyRange, // eslint-disable-line no-unused-vars
// @ts-ignore
...rest
} = this.props;

Expand All @@ -117,8 +115,6 @@ export class ValidatedDualRange extends Component<Props> {
fullWidth={fullWidth}
value={this.state.value}
onChange={this._onChange}
// @ts-ignore
focusable={false} // remove when #59039 is fixed
{...rest}
/>
</EuiFormRow>
Expand Down

0 comments on commit a51fc45

Please sign in to comment.