Skip to content

Commit

Permalink
fix(schema-renderer): fixed connect onBlur/onFocus throw errors (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored May 26, 2020
1 parent c139df6 commit 54012b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-schema-renderer/src/shared/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ export const connect = <ExtendsComponentKey extends string = ''>(
onBlur: (...args: any) => {
mutators.blur()
if (isFn(schemaComponentProps['onBlur'])) {
schemaComponentProps[options.eventName](...args)
schemaComponentProps['onBlur'](...args)
}
},
onFocus: (...args: any) => {
mutators.focus()
if (isFn(schemaComponentProps['onFocus'])) {
schemaComponentProps[options.eventName](...args)
schemaComponentProps['onFocus'](...args)
}
}
}
Expand Down

0 comments on commit 54012b4

Please sign in to comment.