When looking at a tree as the anonymous user, only a plain list would show. Browser console reports that jQuery is unknown. That's because jQuery is not a dependency in the module. This patch fixes the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2793823-4.patch | 332 bytes | mradcliffe |
| #3 | 2793823-3.patch | 308 bytes | mradcliffe |
| views_tree_missing_jquery_dependency_1.patch | 267 bytes | mathieso |
Comments
Comment #2
mathieso commentedFound the problem at:
http://www.webmaster-forums.net/html-css-and-javascript/drupal-8-tip-deb...
Comment #3
mradcliffeRe-rolled the patch in #2 based on changes to views_tree.libraries.yml
Comment #4
mradcliffeAdds jquery.once from #2793863: Duplicate collapsers for admin so that this patch and patches in that issue can be applied at the same time.
Comment #5
gaurav.kapoor commentedAdded jQuery dependency in this issue https://www.drupal.org/project/views_tree/issues/2793863. jQuery.once isn't being used anymore in the module JS and it has been marked deprecated as well so we don't need it anymore.