You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<svgx={0}y={0}width={200}height={200}>{/* doesn't work */}<Textx={0}y={10}fill="black">{0}</Text>{/* works */}<Textx={0}y={10}fill="black">
0
</Text></svg>
The result is:
<svgx="0"y="0"width="200"height="200"><svgx="0"y="0"style="overflow: visible;"><textx="0"y="10"fill="black"text-anchor="start"><tspanx="0"dy="0em"></tspan> // <-- no child element</text></svg><svgx="0"y="0"style="overflow: visible;"><textx="0"y="10"fill="black"text-anchor="start"><tspanx="0"dy="0em">0</tspan></text></svg></svg>
* fix(demo/text): render 0 as number (#813)
* fix(demo/text): check improvement removing negated conditions
* fix(demo/text): use single quote to avoid prettier problem
Co-authored-by: Chris Williams <williaster@users.noreply.github.com>
Example:
The result is:
PR #814 should fix this problem.
The text was updated successfully, but these errors were encountered: