Is there some approach to avoid this?
Code: Select all
<OrderList
v-model="topics"
listStyle="min-height:800px"
class="topics-order-list"
:stripedRows="true"
dataKey="id"
:moveUpButtonProps="controlButtonProps"
:moveTopButtonProps="controlButtonProps"
:moveDownButtonProps="controlButtonProps"
:moveBottomButtonProps="controlButtonProps"
@reorder="updatePositions"
>
Code: Select all
deleteTopic(topicId) {
this.topics.splice(this.topics.findIndex(t => t.id === topicId), 1)
},