mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Added string as value prop type in range arg input * Added string as value prop type in range arg input
This commit is contained in:
parent
bab832593c
commit
49d2008cb9
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ const RangeArgInput = ({ typeInstance, onValueChange, argValue }) => {
|
|||
step={step}
|
||||
showLabels
|
||||
showInput
|
||||
value={`${argValue}`}
|
||||
value={argValue}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
);
|
||||
|
@ -31,7 +31,7 @@ const RangeArgInput = ({ typeInstance, onValueChange, argValue }) => {
|
|||
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue