Skip to content

Commit c2cb0df

Browse files
committed
fix(tickets): external link warning in comments
1 parent f739eac commit c2cb0df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/client/containers/Tickets/CommentNotePartial.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,20 @@ const setupImages = parent => {
2424
imagesEl.forEach(i => helpers.setupImageLink(i))
2525
}
2626

27+
const setupLinks = parent => {
28+
const linksEl = parent.body.querySelectorAll('a')
29+
linksEl.forEach(i => helpers.setupLinkWarning(i))
30+
}
31+
2732
class CommentNotePartial extends React.Component {
2833
componentDidMount () {
2934
setupImages(this)
35+
setupLinks(this)
3036
}
3137

3238
componentDidUpdate () {
3339
setupImages(this)
40+
setupLinks(this)
3441
}
3542

3643
componentWillUnmount () {}

0 commit comments

Comments
 (0)