remix-forms
Advanced tools
Comparing version
@@ -150,2 +150,5 @@ "use strict"; | ||
const field = fields.find((field) => field.name === name); | ||
const autoFocus = autoFocused | ||
? field === null || field === void 0 ? void 0 : field.autoFocus | ||
: child.props.autoFocus; | ||
return react_1.default.cloneElement(child, { | ||
@@ -158,6 +161,6 @@ shape: field === null || field === void 0 ? void 0 : field.shape, | ||
errors: field === null || field === void 0 ? void 0 : field.errors, | ||
autoFocus: field === null || field === void 0 ? void 0 : field.autoFocus, | ||
hidden: field === null || field === void 0 ? void 0 : field.hidden, | ||
multiline: field === null || field === void 0 ? void 0 : field.multiline, | ||
...child.props, | ||
autoFocus, | ||
}); | ||
@@ -164,0 +167,0 @@ } |
{ | ||
"name": "remix-forms", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Magically create forms + actions in Remix!", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
37593
0.36%697
0.43%