Fix viewBox bug

This commit is contained in:
Horcrux
2016-11-29 21:24:14 +08:00
parent efef97e36a
commit aa881f8694

View File

@@ -39,7 +39,7 @@ class ViewBox extends Component{
let params = viewBox.trim().split(spacesRegExp);
if (params.length !== 4 || ![params].some(param => param && numberRegExp.test(param))) {
if (params.length !== 4 || !params.some(param => param && numberRegExp.test(param))) {
console.warn('`viewBox` expected a string like `minX minY width height`, but got:' + viewBox);
return <G>
{this.props.children}