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

fix(validation): set input to invalid using error/errorMessages #15269

Merged
merged 1 commit into from Jun 30, 2022

Conversation

nekosaur
Copy link
Member

@nekosaur nekosaur commented Jun 9, 2022

closes #15209

Description

Motivation and Context

How Has This Been Tested?

Markup:

<template>
  <v-app>
    <VForm>
      <VTextField
        v-model="email"
        label="E-mail"
        :error-messages="emailError"
        :error="!!emailError"
      />
    </VForm>
  </v-app>
</template>

<script>
  import { defineComponent } from 'vue'

  export default defineComponent({
    data: () => ({
      email: '',
      emailError: 'Foo',
    }),
  })
</script>

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any features but makes things better)

Checklist:

  • The PR title is no longer than 64 characters.
  • The PR is submitted to the correct branch (master for bug fixes and documentation updates, dev for new features and backwards compatible changes and next for non-backwards compatible changes).
  • My code follows the code style of this project.
  • I've added relevant changes to the documentation (applies to new features and breaking changes in core library)

@nekosaur nekosaur added this to the v3.0.0-beta milestone Jun 9, 2022
@nekosaur nekosaur requested a review from johnleider June 9, 2022 20:55
@nekosaur nekosaur self-assigned this Jun 9, 2022
@johnleider johnleider added E: validation T: bug Functionality that does not work as intended/expected labels Jun 30, 2022
@johnleider johnleider changed the title fix(validation): using error/errorMessages should set input to invalid fix(validation): set input to invalid using error/errorMessages Jun 30, 2022
@johnleider johnleider merged commit 2d91603 into next Jun 30, 2022
@johnleider johnleider deleted the fix/15209-validation-manual-error branch June 30, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: validation T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants