Skip to content

Commit

Permalink
[form-builder] TextInput: Only apply default when type.rows is not a …
Browse files Browse the repository at this point in the history
…number (#2259)
  • Loading branch information
bjoerge committed Jan 26, 2021
1 parent de414bf commit 984b6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/form-builder/src/inputs/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const TextInput = React.forwardRef(function TextInput(
onChange={handleChange}
onFocus={onFocus}
onBlur={onBlur}
rows={type.rows || 10}
rows={typeof type.rows === 'number' ? type.rows : 10}
ref={forwardedRef}
/>
</FormField>
Expand Down

1 comment on commit 984b6b4

@vercel
Copy link

@vercel vercel bot commented on 984b6b4 Jan 26, 2021

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.