Skip to content

Commit ebbe6eb

Browse files
VincentLangletAlmouro
authored andcommitted
fix(NextInputAutoFocus): define getInputs as const
1 parent 4f54334 commit ebbe6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/withNextInputAutoFocus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const withNextInputAutoFocusContextType = {
1010
getReturnKeyType: PropTypes.func
1111
};
1212

13-
getInputs = children =>
13+
const getInputs = children =>
1414
(isArray(children) ? children : [children]).reduce((partialInputs, child) => {
1515
if (child.props && child.props.children) {
1616
return partialInputs.concat(getInputs(child.props.children));

0 commit comments

Comments
 (0)