fix Symbol svgId undefined bug

This commit is contained in:
Horcrux
2016-02-22 10:17:47 +08:00
parent 243c11b004
commit 2505f0b9a2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ class SymbolElement extends Component{
let {props} = this;
return <Defs.Item
id={props.id}
svgId={props.svgId}
>
<ViewBox
{...props}
+1 -1
View File
@@ -46,7 +46,7 @@ export default function (props) {
return rgba(props.fill, fillOpacity);
} else if (props.fill === undefined) {
let fillOpacity = +props.fillOpacity;
if (isNaN(fillOpacity)) {
fillOpacity = 1;