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}> <i className={classString}>
<svg <svg
{...extraCommonProps} {...extraCommonProps}
{...omit(this.props, ['type', 'spin', 'viewBox'])} {...omit(this.props, ['type', 'spin'])}
width={'1em'} width={'1em'}
height={'1em'} height={'1em'}
fill={'currentColor'} fill={'currentColor'}