Answer the question
In order to leave comments, you need to log in
Why is my js changing my Twig output array?
I use Twig, and I connect a third-party script that breaks my array, I view the array through twig debag. Why does the script make some array keys empty? This piece of script changes the array:
var split = Split(['#leftPane', '#rightPane'], {
sizes: sizes,
onDragEnd: function () {
localStorage.setItem('split-sizes', JSON.stringify(split.getSizes()));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question