V
V
Vladimir Malkov2018-09-25 15:53:38
Vue.js
Vladimir Malkov, 2018-09-25 15:53:38

Why is the component not rendering?

You need to make a custom grid on vue. I ran into a problem when implementing sorting (the mechanism was brazenly borrowed from the off site Grid-component ).
In order not to overload with details, I reproduced the problem in jsfiddle (sorting does not work).
It breaks when the template displays a "local copy" of the input data (currentCellVal property). It is necessary to change the data in the cell, for a single-connected data flow. And most importantly, please explain why this happens and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2018-09-25
@MalkovVladimir73

Don't copy the prop to data, because data is only initialized the first time and will not be updated from the prop.
https://jsfiddle.net/sdzcovuq/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question