Open epihel opened 7 years ago
this could be quickly fixed by adding textPath
to the list of SVG elements here.
As a workaround, until someone submits a PR, you could cheat by defining the variable textPath
and let react render it as a native element:
let textPath = 'textPath';
...
<textPath></textPath>
or even in a scope:
<div rt-scope="'textPath' as textPath">
...
<textPath></textPath>
...
</div>
Thank you for the rt-scope workaround. That worked. This then revealed a few more issues with the SVG attributes "xlink:href" and "clip-path," as well as the style attribute "clip-path", which react-templates currently passes through unchanged:
`
`
React gives the warnings: "Unknown DOM property xlink:href. Did you mean xlinkHref?" "Unknown DOM property clip-path. Did you mean clipPath?"
Using react-templates 0.6.1 and react 15.5.4, the following code renders without errors:
` render() { return (
}; `
But this SVG in an .rt file: `