Skip to content

Commit b7e8b73

Browse files
status
1 parent c53d81d commit b7e8b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugins/maps/public/components/validated_number_input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class ValidatedNumberInput extends Component<Props, State> {
7373
}, 250);
7474

7575
_onChange = (e: ChangeEvent<HTMLInputElement>) => {
76-
const value = (e.target as HTMLInputElement).value;
76+
const value = e.target.value;
7777
const { isValid, errorMessage, parsedValue } = isNumberValid(
7878
value,
7979
this.props.min,
@@ -100,6 +100,7 @@ export class ValidatedNumberInput extends Component<Props, State> {
100100
display="columnCompressed"
101101
>
102102
<EuiFieldNumber
103+
isInvalid={!this.state.isValid}
103104
min={this.props.min}
104105
max={this.props.max}
105106
value={this.state.value}

0 commit comments

Comments
 (0)