File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 6868 var commentText = "" ;
6969
7070 // Use raw comment when available.
71- var commentForm = comment . querySelector ( ".js-comment-field" ) ;
71+ // Extra scope is needed to get the correct comment field, which is not an "Reference new issue" modal (with org rights).
72+ var commentForm = comment . querySelector (
73+ ":scope > .js-comment-update .js-comment-field" ,
74+ ) ;
7275 if ( commentForm ) {
7376 commentText = commentForm . value ;
7477 }
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ reply button on an comment.
2020
2121## Version History
2222
23+ - version ** next**
24+
25+ - π Ignore "Reference new issue" modals when quoting.
26+
2327- version ** 1.0.6**
2428
2529 - π Fix broken comment form. Fixes ([ #168 ] ( https://github.com/jerone/UserScripts/issues/168 ) ).
You canβt perform that action at this time.
0 commit comments