V-if leaves dom nodes

Hello, I have intresting question - why, every time I use v-if to toggle an element, they leave extra nodes in the dom?

Using v-if will add or delete dom nodes.
If you want to avoid frequent add or delete of dom nodes, you can use v-show instead.

Thanks for responding. That is the problem - i have to use v-if, not v-show.
So if v-if should add or delete nodes, why they still grown?

I’m not necessarily right, I guess it may be related to the browser’s memory recycling strategy, deleted dom nodes will be recycled after a period of time.