We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UForm
Nuxt
v3.0.0-alpha.8
<UForm :state="state" :schema="schema" class="space-y-3" @submit="submit" > <UFormField name="text" > <UTextarea v-model="state.text" class="w-full" :rows="6" size="xl" /> </UFormField> <UFormField v-if="!authUser" name="email" :label="$t('label.email')" > <UInput v-model="state.email" icon="i-solar-letter-bold-duotone" :placeholder="$t('placeholder.enter_email')" @update:model-value="state.email = $event || null" /> </UFormField> <UButton block type="submit" :loading="isLoading" :label="$t('button.submit')" /> </UForm>
Why if get error from backend UForm set all inputs attr disabled?
No response
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
I'm guessing this related to your loading state, inputs are disabled while the form is loading. Do you mind sharing your submit function?
submit
You should be able to use loading-auto on the button component to handle it automatically. https://ui3.nuxt.dev/components/button#loading
loading-auto
@romhml Thank you, I found out why it was like that, it turns out I didn't write it catch.
catch
wrong
try {} finally {}
correct
try {} catch {} finally {}
romhml
No branches or pull requests
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.0-alpha.8
Reproduction
Description
Why if get error from backend
UForm
set all inputs attr disabled?Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: