diff --git a/src/views/Comment/CommentAvatar.js b/src/views/Comment/CommentAvatar.js index 439ff19e44..c709321080 100644 --- a/src/views/Comment/CommentAvatar.js +++ b/src/views/Comment/CommentAvatar.js @@ -22,7 +22,7 @@ const CommentAvatar = React.forwardRef(function (props, ref) { const ElementType = getElementType(CommentAvatar, props) return ( - + {createHTMLImage(src, { autoGenerateKey: false, defaultProps: imageProps })} ) diff --git a/src/views/Comment/CommentGroup.js b/src/views/Comment/CommentGroup.js index 20c469b331..5b18238dea 100644 --- a/src/views/Comment/CommentGroup.js +++ b/src/views/Comment/CommentGroup.js @@ -31,7 +31,7 @@ const CommentGroup = React.forwardRef(function (props, ref) { const ElementType = getElementType(CommentGroup, props) return ( - + {childrenUtils.isNil(children) ? content : children} ) diff --git a/test/specs/views/Comment/CommentAction-test.js b/test/specs/views/Comment/CommentAction-test.js index 60d30a11bb..e61a3c1b20 100644 --- a/test/specs/views/Comment/CommentAction-test.js +++ b/test/specs/views/Comment/CommentAction-test.js @@ -5,7 +5,7 @@ import * as common from 'test/specs/commonTests' describe('CommentAction', () => { common.isConformant(CommentAction) - common.forwardsRef(CommentAction) + common.forwardsRef(CommentAction, { tagName: 'a' }) common.rendersChildren(CommentAction) it('renders an a element by default', () => {