diff --git a/components/tag/index.jsx b/components/tag/index.jsx index d47ebc3a03a988acf6efadc381cb76810e54db64..3e9f3ab8ff0c5c3137ebfd59d779d0a262c31995 100644 --- a/components/tag/index.jsx +++ b/components/tag/index.jsx @@ -43,15 +43,17 @@ class AntTag extends React.Component { [prefixCls + '-' + color]: !!color, [prefixCls + '-close']: this.state.closing, }); - return this.state.closed ? null : ( + return ( -
- - {close} -
+ {this.state.closed ? null : ( +
+ + {close} +
+ )}
); }