diff --git a/packages/core/src/components/tag/tag.tsx b/packages/core/src/components/tag/tag.tsx index 92173a5554..50c6bc2bf6 100644 --- a/packages/core/src/components/tag/tag.tsx +++ b/packages/core/src/components/tag/tag.tsx @@ -124,6 +124,8 @@ export interface ITagProps export class Tag extends AbstractPureComponent2 { public static displayName = `${DISPLAYNAME_PREFIX}.Tag`; + private tagId = Utils.uniqueId("tag"); + public render() { const { active, @@ -172,10 +174,22 @@ export class Tag extends AbstractPureComponent2 { ) : null; return ( - + {!isReactNodeEmpty(children) && ( - + {children} )}