We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
undefined
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
5.8.3
Playground
<script lang="ts" setup> import { ref } from 'vue' const msg = ref('Hello World!') </script> <template> <h1 :style="undefined" :class="undefined">{{ msg }}</h1> <input v-model="msg" /> </template>
When SSR is OFF it renders <h1 class>...</h1>. When SSR is ON it renders <h1 style class>...</h1>.
<h1 class>...</h1>
<h1 style class>...</h1>
When attribute has undefined value it should be completely removed from node: <h1>...</h1>
<h1>...</h1>
Attribute names are present but with empty values.
The text was updated successfully, but these errors were encountered:
#3173
Sorry, something went wrong.
No branches or pull requests
Vue version
5.8.3
Link to minimal reproduction
Playground
Steps to reproduce
When SSR is OFF it renders
<h1 class>...</h1>
.When SSR is ON it renders
<h1 style class>...</h1>
.What is expected?
When attribute has
undefined
value it should be completely removed from node:<h1>...</h1>
What is actually happening?
Attribute names are present but with empty values.
The text was updated successfully, but these errors were encountered: