Hi,
I have a weird error. I have some data that is not shown on the page but that is there when I query the console. Here is the code:
<div class="one" data-bind="visible: !uploading() && current_files().length == 1, with: current_files()[0]">
<a data-bind="attr: file_attrs" target="_blank">
<span data-bind="text: file_text"></span>
{% if not read_only %}<i data-bind="click: $parent.remove_file, visible: !$parent.uploading()">×</i>{% endif %}
</a>
</div>
Here is what Chrome gives me:
<div class="one" data-bind="visible: !uploading() && current_files().length == 1, with: current_files()[0]"></div>
Here is what I get when I query the console:
>>> manager = ko.dataFor($('.one')[0])
>>> !manager.uploading() && manager.current_files().length == 1
true
>>> manager.current_files()[0].file_attrs()
>>> manager.current_files()[0].file_text()
"report.xlsx"
Can someone help me debug this ?
Thanks a lot !
Daniel