Answer the question
In order to leave comments, you need to log in
Empty tag doesn't work in some browsers (Vue, Jetbrains)?
Empty tag doesn't work in some browsers
Maybe someone came across this, how to fix it so that Jetbrains doesn't swear at this?
<textarea v-model="data.value" />
Answer the question
In order to leave comments, you need to log in
This is because the tag is not closed, in your case:
can be replaced with:
and the warning will disappear.
But that way you won't be taking advantage of the cool Vue file feature that allows you to make tags empty.
Workaround for PHPStrom / WebStrom: 1) Open this menu (for example, Ctrl + A and there in the All tab enter the error message) 2) On the right, where select for Severity (strictness), select this option:
Most likely, it swears at the incorrect v-model="data.value" attribute.
Usually, the component data is accessed through the $data
object
. the this template is usually not written.
It should be something like this:<textarea v-model="value"></textarea>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question