Added .closest() to find Reply button on click; fixes #401
This is to fix the issue where the icon-comment icon is clicked in the Reply button of a note; the icon is used as the target and incorrectly assumed to be the button itself, which causes the reply form to spawn inside the button.
This commit is contained in:
parent
1f3261ac41
commit
0b1cf50060
2 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ v 7.1.0
|
|||
- Fix LDAP TLS authentication (Boris HUISGEN)
|
||||
- Show VERSION information on project sidebar
|
||||
- Improve branch removal logic when accept MR
|
||||
- Fix bug where comment form is spawned inside the Reply button
|
||||
|
||||
v 7.0.0
|
||||
- The CPU no longer overheats when you hold down the spacebar
|
||||
|
|
|
@ -376,7 +376,7 @@ class Notes
|
|||
###
|
||||
replyToDiscussionNote: (e) =>
|
||||
form = $(".js-new-note-form")
|
||||
replyLink = $(e.target)
|
||||
replyLink = $(e.target).closest(".js-discussion-reply-button")
|
||||
replyLink.hide()
|
||||
|
||||
# insert the form after the button
|
||||
|
|
Loading…
Reference in a new issue