I tried to make inline editing in Vue Js 3 with Composition APIand I face this problem. When I click edit, it impacts all rows. How do I make it to only work in one row based on id?
Here's the result I have so far
The codes are there, but if it needs to be posted here as well, I will edit this question to put it here. Thank you.
There are 2 approaches for this:
togelstate within the component.togelvariable a map in the form:{ [id]: true/false }. Then eachtogel[id]would be responsible for its own row state. PlaygroundApproach #1 is a more straight-forward way.