Skip to content

Commit

Permalink
fix Symbol svgId undefined bug
Browse files Browse the repository at this point in the history
  • Loading branch information
magicismight committed Feb 22, 2016
1 parent 243c11b commit 2505f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions elements/Symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SymbolElement extends Component{
let {props} = this;
return <Defs.Item
id={props.id}
svgId={props.svgId}
>
<ViewBox
{...props}
Expand Down
2 changes: 1 addition & 1 deletion lib/fillFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2505f0b

Please sign in to comment.