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
Currently when no title is passed and titleProp is set to `true`, we are
rendering an empty title element which is causing some issues. So we
have added a conditional statement for rendering the title element only
if the title props is not falsy. If we have an existing title, that will
rendered by default. Passing the `null` values as the title will cause
also cause the title element for not render even if a default title
exists on the svg
Fixes#333
🐛 Bug Report
When creating buttons for our application, we do something like:
The above causes the output svg to contain a blank title (
<title></title>
), which in Chrome, stops the tooltip from showing up.What if we completely stripped the title tag when it is undefined?
To Reproduce
Start a project with create-react-app, import an svg component and use it without a title attribute.
The text was updated successfully, but these errors were encountered: