@modular-forms/solid
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -1401,3 +1401,3 @@ "use strict"; | ||
(0, import_solid_js28.createEffect)(() => { | ||
if (field.getInitialInput() === void 0 && (0, import_solid_js28.untrack)(field.getInput) === void 0 && element.type !== "file") { | ||
if (field.getInitialInput() === void 0 && (0, import_solid_js28.untrack)(field.getInput) === void 0 && element.type !== "radio" && element.type !== "file") { | ||
const input = getElementInput(element, field); | ||
@@ -1404,0 +1404,0 @@ field.setInitialInput(() => input); |
@@ -277,4 +277,4 @@ import { ZodType } from 'zod'; | ||
/** | ||
* Wrapper component that provides the reactive properties and state of a form | ||
* field. | ||
* Wrapper component that sets up a form field and provides its reactive | ||
* properties and state. | ||
*/ | ||
@@ -292,4 +292,4 @@ declare function Field<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>>(props: FieldProps<TFieldValues, TFieldName>): JSX.Element; | ||
/** | ||
* Wrapper component that provides the reactive properties and state of a form | ||
* field array. | ||
* Wrapper component that sets up a form field array and provides its reactive | ||
* state. | ||
*/ | ||
@@ -591,3 +591,3 @@ declare function FieldArray<TFieldValues extends FieldValues, TFieldArrayName extends FieldArrayPath<TFieldValues>>(props: FieldArrayProps<TFieldValues, TFieldArrayName>): JSX.Element; | ||
/** | ||
* Validates the entire form, several fields and field arrays or a singel field | ||
* Validates the entire form, several fields and field arrays or a single field | ||
* or field array. | ||
@@ -625,3 +625,3 @@ * | ||
/** | ||
* Returns the reactive properties and state of a form field. | ||
* Sets up a form field and returns its reactive properties and state. | ||
* | ||
@@ -642,3 +642,3 @@ * @param form The form to which the field is connected. | ||
/** | ||
* Returns the reactive state of a form field array. | ||
* Sets up a form field array and returns its reactive state. | ||
* | ||
@@ -645,0 +645,0 @@ * @param form The form to which the field array is connected. |
@@ -1329,3 +1329,3 @@ // src/adapters/zodField.ts | ||
createEffect(() => { | ||
if (field.getInitialInput() === void 0 && untrack20(field.getInput) === void 0 && element.type !== "file") { | ||
if (field.getInitialInput() === void 0 && untrack20(field.getInput) === void 0 && element.type !== "radio" && element.type !== "file") { | ||
const input = getElementInput(element, field); | ||
@@ -1332,0 +1332,0 @@ field.setInitialInput(() => input); |
{ | ||
"name": "@modular-forms/solid", | ||
"description": "The modular form library for SolidJS", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Fabian Hiller", |
138950