Answer the question
In order to leave comments, you need to log in
Why do css styles remain after dynamic class change?
Strange situation, please tell me which way to dig.
There is a code
<input type="checkbox"
v-model="form.gameCodes"
name="gameCodes"
value="1"
class="game-tab__checkbox"
id="anyid">
<label for="anyid" class="game-tab game-tab_register" :class="{ active : form.gameCodes.includes('1') }">
</label>
Answer the question
In order to leave comments, you need to log in
Suddenly found the cause of the problem. In the mobile version of the site, when you click on an element, the :hover effect worked and was active all the time until you clicked somewhere else. I had to leave the hover in the desktop version, but remove the hover effect from the styles of the mobile version and the problem was solved.
Hope it helps someone in a similar situation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question