hotfix: svg should receive viewBox prop.

This commit is contained in:
HeskeyBaozi 2018-07-19 20:10:36 +08:00
parent 3589159489
commit 5b5af6ae77

View File

@ -84,7 +84,7 @@ export function create(options: CustomIconOptions = {}): React.ComponentClass<Ic
<i className={classString}>
<svg
{...extraCommonProps}
{...omit(this.props, ['type', 'spin', 'viewBox'])}
{...omit(this.props, ['type', 'spin'])}
width={'1em'}
height={'1em'}
fill={'currentColor'}