We have a working Angular 4 application which uses Clarity's Tree View. We've been very happy with this control and we would like to continue using it.
Recently, we've added another (non-angular) component to the application which requires dojo.js
. We're importing dojo.js
from index.html
like this:
<script type="text/javascript" language="javascript" src="/dojo/dojo/dojo.js"></script>
Alas, when this import is added, the expand/collapse arrow/caret image on expandable tree nodes no longer appear.
Comparing the two rendered pages, I've found that the clr-icon
element in the final DOM no longer contains a nested svg
element. The missing svg
element looks like this (some text replaced with ellipis by me):
<clr-icon ...>
<svg version="1.1" viewBox="0 0 36 36" preserveAspectRatio="xMidYMid meet" xmlns="..." xmlns:xlink="..." focusable="false" role="img">
<title>angle</title>
<path class="clr-i-outline clr-i-outline-path-1" d="..."></path>
</svg>
</clr-icon>
My current hypothesis is that the introduction of dojo.js
causes a namespace collision which prevents some bit of "insert SVG elements" code from running.
How can the SVG element be restored while continuing to import dojo.js
from index.html?