Skip to content

Commit

Permalink
[form-builder] Fix slug input closing immediately when in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 1e58fa2 commit 8392f0d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/@sanity/form-builder/src/inputs/Slug/SlugInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ export default withValuePath(
this.updateCurrent(event.target.value)
}

handleFocusCurrent = event => {
this.props.onFocus([])
}

handleGenerateSlug = () => {
const {type} = this.props
const source = type.options?.source
Expand Down Expand Up @@ -189,7 +185,6 @@ export default withValuePath(
customValidity={errors.length > 0 ? errors[0].item.message : ''}
disabled={loading}
onChange={this.handleChange}
onFocus={this.handleFocusCurrent}
value={typeof inputText === 'string' ? inputText : value.current}
readOnly={readOnly}
/>
Expand Down

0 comments on commit 8392f0d

Please sign in to comment.