Skip to content

Commit

Permalink
List transition example fix (#2611)
Browse files Browse the repository at this point in the history
* reset id for new items

* more consistent syntax for composition api
  • Loading branch information
AloisSeckar committed Dec 19, 2023
1 parent 09d541a commit a0b4a90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/examples/src/list-transition/App/composition.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {

function reset() {
items.value = getInitialItems()
id = items.value.length + 1
}

function shuffle() {
Expand Down
1 change: 1 addition & 0 deletions src/examples/src/list-transition/App/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
},
reset() {
this.items = getInitialItems()
id = getInitialItems().length + 1
},
shuffle() {
this.items = shuffle(this.items)
Expand Down

0 comments on commit a0b4a90

Please sign in to comment.