A question regarding removing elements ... (and redraw?) - with MWE #97
-
Hello all, I have an issue where i remove elements from the bound object, and while the object correctly changes (as seen in the minimal working example) the dom seems no to update, but the strange thing is its not updating depending on the order of items removed. If you take a look at the example, if you press all buttons from bottom to top - everything works as expected; but any other direction will lead to the dom beeing stuck in a wrong display state so my question boils down to - what am I am missing? or is there a way to force a redraw? Minimal working example (https://jsfiddle.net/trj6s1h0/1/) also for reference
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You must provide a |
Beta Was this translation helpful? Give feedback.
You must provide a
key
in thev-for
https://v3.vuejs.org/guide/migration/key-attribute.html