diff --git a/core/src/components/reorder-group/readme.md b/core/src/components/reorder-group/readme.md index 5905c1f810..2efba82ae4 100644 --- a/core/src/components/reorder-group/readme.md +++ b/core/src/components/reorder-group/readme.md @@ -629,7 +629,7 @@ export default defineComponent({ const doReorder = (event: CustomEvent) => { // Before complete is called with the items they will remain in the // order before the drag - console.log('Before complete', this.items); + console.log('Before complete', items.value); // Finish the reorder and position the item in the DOM based on // where the gesture ended. Update the items variable to the @@ -637,7 +637,7 @@ export default defineComponent({ items.value = event.detail.complete(items.value); // After complete is called the items will be in the new order - console.log('After complete', this.items); + console.log('After complete', items.value); } return { doReorder, items, ... } } diff --git a/core/src/components/reorder-group/usage/vue.md b/core/src/components/reorder-group/usage/vue.md index bb51cad891..7896b6d945 100644 --- a/core/src/components/reorder-group/usage/vue.md +++ b/core/src/components/reorder-group/usage/vue.md @@ -121,7 +121,7 @@ export default defineComponent({ const doReorder = (event: CustomEvent) => { // Before complete is called with the items they will remain in the // order before the drag - console.log('Before complete', this.items); + console.log('Before complete', items.value); // Finish the reorder and position the item in the DOM based on // where the gesture ended. Update the items variable to the @@ -129,7 +129,7 @@ export default defineComponent({ items.value = event.detail.complete(items.value); // After complete is called the items will be in the new order - console.log('After complete', this.items); + console.log('After complete', items.value); } return { doReorder, items, ... } }