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
@nuxthq/ui: 2.5.0 nuxt: 3.5.0
Use a toggle like this:
<UFormGroup name="acceptTos" :error="!!errors.acceptTos"> <UToggle v-model="acceptTos" name="acceptTos" /> </UFormGroup>
If :error is true, the toggle should indicate this state like every other form field (Input, ...).
:error
true
The toggle does not visually show the error state.
The text was updated successfully, but these errors were encountered:
208acca
The issue here is that the red color for the Toggle hasn't been safelisted as there is no such code as <UToggle color="red" />.
red
<UToggle color="red" />
In the latest commit, red color is always safelisted for all form elements.
Sorry, something went wrong.
No branches or pull requests
Version
@nuxthq/ui: 2.5.0
nuxt: 3.5.0
Reproduction Link
Steps to reproduce
Use a toggle like this:
What is Expected?
If
:error
istrue
, the toggle should indicate this state like every other form field (Input, ...).What is actually happening?
The toggle does not visually show the error state.
The text was updated successfully, but these errors were encountered: