mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
hotfix: svg should receive viewBox prop.
This commit is contained in:
parent
3589159489
commit
5b5af6ae77
@ -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'}
|
||||||
|
Loading…
Reference in New Issue
Block a user