Skip to content
New issue

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

FormGroup error with error slot #2634

Open
jawnothin opened this issue Nov 13, 2024 · 1 comment
Open

FormGroup error with error slot #2634

jawnothin opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jawnothin
Copy link

For what version of Nuxt UI are you asking this question?

v2.x

Description

I'm using the FormGroup component, and I've set the error to true, however unless it contains a non-empty text value the error slot won't render. Is this intentional or a bug? I would tend to think it's the latter.

<UFormGroup :error="true">
  <template #error>
    <div>I will not render</div>
  <template>
</UFormGroup>
<UFormGroup :error="true && 'some error'">
  <template #error>
    <div>I will render</div>
  <template>
</UFormGroup>
@jawnothin jawnothin added the question Further information is requested label Nov 13, 2024
@romhml romhml self-assigned this Nov 22, 2024
@romhml
Copy link
Collaborator

romhml commented Nov 22, 2024

Looks like this is related to #1888. I'll look for a fix.

@romhml romhml added bug Something isn't working and removed question Further information is requested labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants