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

regression with :class and v-bind #4155

Closed
cexbrayat opened this issue Jul 20, 2021 · 0 comments
Closed

regression with :class and v-bind #4155

cexbrayat opened this issue Jul 20, 2021 · 0 comments
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working

Comments

@cexbrayat
Copy link
Member

Version

3.2.0-beta.2

Reproduction link

SFC Playground

Steps to reproduce

As you can see in the SFC playground:

<template>
  <button :class="{ btn: true }">1</button>
  <button v-bind="{ disabled: true }" :class="{ btn: true }">2</button>
  <button :class="{ btn: true }" v-bind="{ disabled: true }">3</button>
</template>

<style>
  .btn {
    color: red;
  }
</style>

What is expected?

The first and second button do have the class btn applied.

What is actually happening?

The last one, with v-bind after :class has a class [object Object].


This was spotted by @logaretm when I reported an issue that I believed to be in vee-validate, but it turns out to be a regression in vue-next. Downgrading to v3.1.3 makes it work again.

@posva posva added 🐞 bug Something isn't working ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Jul 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants