Open WofWca opened 4 years ago
A good and reasonable workaround would be to use a computed property instead, rather than have interesting logic inside the template.
I am facing the same issue, and I found an resolution is below:
<span v-if="!!(item.createdTime instanceof Date)"></span>
I think this would help you before the issue is fixed.
same issue with typeof
Info
Problem
Using
instanceof
inside templates breaks syntax highlighting.Reproducible Case