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
{{ message }}
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
If your SVG component has properties like stroke-width, you get the following console warning.
Warning: Invalid DOM property `stroke-width`. Did you mean `strokeWidth`?
in path (created by MorphTransition)
in svg (created by MorphTransition)
in MorphTransition (created by MorphReplace)
in MorphReplace (created by App)
in div (created by App)
in App
It would seem strokeWidth (camelCase) should be used instead, but helpers.js and normalizeSvg.js expect the dash-case versions.
Is there a reason it doesn't use camelCase, as would seem more typical in React? Any idea on how to get rid of the warning?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If your SVG component has properties like
stroke-width
, you get the following console warning.It would seem
strokeWidth
(camelCase) should be used instead, buthelpers.js
andnormalizeSvg.js
expect the dash-case versions.Is there a reason it doesn't use camelCase, as would seem more typical in React? Any idea on how to get rid of the warning?
The text was updated successfully, but these errors were encountered: