Skip to content

Commit

Permalink
Fix number slider bug (#4069)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyd-eth authored Sep 14, 2023
1 parent eceae4a commit 74bed9a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/inputs/NumberSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ export default function NumberSlider({

return (
<div className={className}>
<div className="mb-4 flex items-baseline">
<Slider
className="mr-5 flex-1"
{...inputConfig}
value={_value}
onChange={(val: number) => updateValue(val)}
disabled={disabled}
/>
<div className="mb-4 flex items-center">
<Form.Item className="mb-0 w-full" name={name}>
<Slider
className="mr-5 flex-1"
{...inputConfig}
value={_value}
onChange={(val: number) => updateValue(val)}
disabled={disabled}
/>
</Form.Item>
<Form.Item
className="mb-0"
name={name}
Expand Down

1 comment on commit 74bed9a

@vercel
Copy link

@vercel vercel bot commented on 74bed9a Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.