Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleFocus = nextPath => {
const {path, onFocus, focusPath} = this.props
if (!onFocus) {
// eslint-disable-next-line no-console
console.warn(
'FormBuilderInput was used without passing a required onFocus prop. Read more at %s.',
generateHelpUrl('form-builder-input-missing-required-prop')
)
return
}
const nextFocusPath = Array.isArray(nextPath) ? [...path, ...nextPath] : path
if (PathUtils.isEqual(focusPath, nextFocusPath)) {
// no change
return
}
onFocus(nextFocusPath)
}
handleBlur = () => {