Skip to content

Commit

Permalink
Update prop types on RangeArgInput (elastic#31654) (elastic#31720)
Browse files Browse the repository at this point in the history
* Added string as value prop type in range arg input

* Added string as value prop type in range arg input
  • Loading branch information
cqliu1 authored Feb 21, 2019
1 parent 3754dbb commit 99cc763
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ const RangeArgInput = ({ typeInstance, onValueChange, argValue }) => {
step={step}
showLabels
showInput
value={`${argValue}`}
value={argValue}
onChange={handleChange}
/>
);
};

RangeArgInput.propTypes = {
onValueChange: PropTypes.func.isRequired,
argValue: PropTypes.number.isRequired,
argValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
typeInstance: PropTypes.shape({
options: PropTypes.shape({
min: PropTypes.number.isRequired,
Expand Down

0 comments on commit 99cc763

Please sign in to comment.