Skip to content

Commit

Permalink
Merge branch 'master' into bz-2281587-tooltip-rendered-behind-other-c…
Browse files Browse the repository at this point in the history
…omponents
  • Loading branch information
TimothyAsirJeyasing authored Aug 21, 2024
2 parents 3d0cfb1 + 5937911 commit 159e0cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shared/src/utils/RequestSizeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const RequestSizeInput: React.FC<RequestSizeInputProps> = ({
testID,
unitText,
}) => {
const parsedRequestSizeValue = parseInt(defaultRequestSizeValue, 10);
const parsedRequestSizeValue = parseInt(String(defaultRequestSizeValue), 10);
const defaultValue = Number.isFinite(parsedRequestSizeValue)
? parsedRequestSizeValue
: null;
Expand All @@ -62,7 +62,7 @@ export const RequestSizeInput: React.FC<RequestSizeInputProps> = ({

const onValueChange: React.ReactEventHandler<HTMLInputElement> = (event) => {
setValue(parseInt(event.currentTarget.value, 10));
onChange({ value: event.currentTarget.value, unit });
onChange({ value: parseInt(event.currentTarget.value, 10), unit });
};

const changeValueBy = (changeBy: number) => {
Expand Down Expand Up @@ -121,7 +121,7 @@ export type RequestSizeInputProps = {
required?: boolean;
dropdownUnits: any;
defaultRequestSizeUnit: string;
defaultRequestSizeValue: string;
defaultRequestSizeValue: string | number;
describedBy?: string;
step?: number;
minValue?: number;
Expand Down

0 comments on commit 159e0cc

Please sign in to comment.