Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2cb0df

Browse files
committed
fix(tickets): external link warning in comments
1 parentf739eac commitc2cb0df

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+
constsetupLinks=parent=>{
28+
constlinksEl=parent.body.querySelectorAll('a')
29+
linksEl.forEach(i=>helpers.setupLinkWarning(i))
30+
}
31+
2732
classCommentNotePartialextendsReact.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)

[8]ページ先頭

©2009-2025 Movatter.jp