A
A
aloky2018-09-07 19:26:30
IntelliJ IDEA
aloky, 2018-09-07 19:26:30

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? 5b92a699c37f9184016548.png

<textarea v-model="data.value" />

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya, 2019-03-11
@kicker1337

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:
YHYZ8A7.png

P
PloAl, 2018-09-07
@PloAl

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>

R
Roman Kitaev, 2018-09-08
@deliro

Just kill it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question