When setting a form input to required and it doesn't have an initial value, the input state is set to invalid on loading. I would expect the input state to be set to invalid only after a focus or mouseout event.
{
type: 'input',
name: 'example_input',
inputType: 'text',
label: 'Example input field',
placeholder: 'Enter some text',
required: true,
requiredValidationMessage:
"This field is required. Enter a value",
}
Por ahora, ningún usuario ha respondido a esta publicación. Vuelve pronto para ver si alguien tiene la solución o envía tu propia respuesta si sabes cómo ayudar. Cada grano de arena cuenta.