-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
Version
2.4.3
Reproduction link
https://jsfiddle.net/jLrvghtL/8/
Steps to reproduce
<div id="app">
<div v-if="status" v-html="status"></div>
<div v-else class="status">else</div>
<button @click="toggleEdit">
toggleEdit
</button>
</div>
new Vue({
el: '#app',
data: {
status: false
},
methods: {
toggleEdit: function() {
this.status = !this.status
}
}
})
What is expected?
The v-html="status"
could be display correctly
What is actually happening?
The status won't be display, if the status
equal true
and the userAgent were Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
, unless we replace span with other tag.