Skip to content

[Bug] :class="false" causes class being rendered #11902

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

Closed
wenfangdu opened this issue Feb 6, 2021 · 1 comment
Closed

[Bug] :class="false" causes class being rendered #11902

wenfangdu opened this issue Feb 6, 2021 · 1 comment

Comments

@wenfangdu
Copy link

wenfangdu commented Feb 6, 2021

Version

2.6.11

Steps to reproduce

<template>
  <div :style="false" :class="false" :foo="false">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium modi
    repudiandae, illum sequi nemo est deleniti optio distinctio quaerat quasi
    dolores vitae aspernatur quisquam, voluptatibus quibusdam ullam, ipsum aut
    amet?
  </div>
</template>

What is expected?

Per

... If isButtonDisabled has the value of null, undefined, or false, the disabled attribute will not even be included in the rendered element..

None of foo, class, style should be rendered.

What is actually happening?

class is rendered.

@posva
Copy link
Member

posva commented Feb 6, 2021

This is intended. Please search existing issues

@posva posva closed this as completed Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants