Skip to content

Commit

Permalink
[form-builder] Fix TextInput’s default rows property
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Jan 25, 2021
1 parent baf78bf commit 1ecca18
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/@sanity/form-builder/src/inputs/TextInput.tsx
@@ -1,9 +1,8 @@
import React, {ForwardedRef} from 'react'
import {TextSchemaType} from '@sanity/types'
import {TextArea} from '@sanity/ui'
import {useId} from '@reach/auto-id'

import {FormField} from '@sanity/base/components'
import {TextSchemaType} from '@sanity/types'
import {TextArea} from '@sanity/ui'
import PatchEvent, {set, unset} from '../PatchEvent'
import {Props} from './types'

Expand Down Expand Up @@ -43,7 +42,7 @@ const TextInput = React.forwardRef(function TextInput(
onChange={handleChange}
onFocus={onFocus}
onBlur={onBlur}
rows={type.rows}
rows={type.rows || 10}
ref={forwardedRef}
/>
</FormField>
Expand Down

0 comments on commit 1ecca18

Please sign in to comment.