Skip to content

Commit

Permalink
🐛 Add step values to numeric inputs (#124210)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
dej611 and kibanamachine authored Feb 2, 2022
1 parent f7d9b0d commit d7daf41
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export const dateHistogramOperation: OperationDefinition<
};
setInterval(newInterval);
}}
step={1}
/>
</EuiFlexItem>
<EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const RangePopover = ({
compressed
placeholder={FROM_PLACEHOLDER}
isInvalid={!isValidRange(tempRange)}
step={1}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -164,6 +165,7 @@ export const RangePopover = ({
onSubmit();
}
}}
step={1}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export const staticValueOperation: OperationDefinition<
compressed
value={inputValue ?? ''}
onChange={onChangeHandler}
step="any"
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export function ColorRangeItem({
index: index + 1,
},
})}
step="any"
/>
</EuiFlexItem>
{ActionButton ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const FloatingColumnsInput = ({
onChange={(e) => {
handleInputChange(Number(e.target.value));
}}
step={1}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const MaxLinesInput = ({
value={inputValue}
min={MIN_TRUNCATE_LINES}
max={MAX_TRUNCATE_LINES}
step={1}
compressed
disabled={isDisabled}
onChange={(e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ export const AxisSettingsPopover: React.FunctionComponent<AxisSettingsPopoverPro
});
}
}}
step="any"
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down Expand Up @@ -504,6 +505,7 @@ export const AxisSettingsPopover: React.FunctionComponent<AxisSettingsPopoverPro
});
}
}}
step="any"
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down

0 comments on commit d7daf41

Please sign in to comment.