sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

"Send now" button may lose the review (`submit-review-as-single-comment`) #2978

fregante posted onGitHub

I can't replicate it anymore but it happened twice for me.

  1. Click "Send now"
  2. The comment disappears
  3. Nothing happens (the "new comment" form) should reappear.

Maybe one of these 2 awaits are not happening:

https://github.com/sindresorhus/refined-github/blob/9fa2a1dd71a0b2465fb67ab29918a7b63bdac0fa/source/features/submit-review-as-single-comment.tsx#L83-L91

Losing a comment is pretty bad.

https://github.com/sindresorhus/refined-github/issues/1598 could be useful too.


I'd suggest adding:

posted by fregante almost 5 years ago

I found an error. getNewCommentField does not return a textarea as expected, in fact I have to select the textarea again later:

https://github.com/sindresorhus/refined-github/blob/75f4cc8b5fa9b75aa315a9b9a036e60d5abbadd0/source/features/submit-review-as-single-comment.tsx#L67-L72

getNewCommentField should probably be replaced with elementReady or a plain select

posted by fregante almost 5 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests