30

Find a random question you believe to be a duplicate. Find an original question that solves the problem and copy the link. Click "close", then "Duplicate". Modal opens. Paste link from clipboard. Press Enter.

Expectation: the Enter is interpreted as a click to "Vote to close".

Actual behavior: the modal stays open and refreshes its contents, in addition to "Thanks"ing the accepted answer (and sometimes that causes an error)*:

You can't react to your own post

*: Yes, I'm suggesting an original question that I happen to have asked.

Related, but fixed: Add duplicate modal does not get focus and does not accept Enter

6
  • Looks a lot like Multiple flag dialogs for posts can be opened with the keyboard
    – Scratte
    Commented Jun 29, 2020 at 16:52
  • 1
    @Scratte similar, but this involves explicitly giving focus to something within the dialog Commented Jun 29, 2020 at 17:57
  • @Nick If I recall correctly the bug in my link was first noticed the same way as posted here. It then turned out it was much more than that.
    – Scratte
    Commented Jun 29, 2020 at 18:00
  • @Scratte yeah it looks like a focus problem, the flag one also applies to my Chrome browser. I don't know the error message shown here though, how does one "react" to a post? Make a video about it?
    – CodeCaster
    Commented Jun 29, 2020 at 18:02
  • @CodeCaster I'm not sure what your "how does one "react" to a post?"-question means, but the "You can't react to your own post" looks like the same as when one tries to Thank-react to one own Answer.
    – Scratte
    Commented Jun 29, 2020 at 18:08
  • 2
    Doesn't look like this is happening any more now that the Thanks "feature" has been removed. Commented Jul 20, 2020 at 19:12

2 Answers 2

12

This is resolved since the "thanks" reaction is currently disabled.

Additionally, a code fix is in review should the feature be turned on again and to address a similar issue on Stack Overflow for Teams.

Basically, the issue is that the reaction button was implemented as <button>...</button> which is functionally equivalent to <button type="submit">...</button> when contained within a form.

When the question loaded and you hit Enter, the browser looked for the first submit button within the form and sent it a click event. That button was unfortunately the react button on the first answer.

The fix was to explicitly annotate these as <button type="button">...</button>.

Reactions that correspond to subsequent duplicate votes pointing to the answer's question will be appropriately accounted for when analyzing the experiment.

0
22

What's even much, much worse: Instead of casting a close vote on the current question with the selected question as the duplicate target, it does cast a Thank you reaction-vote on the accepted answer of the selected question. I've accidentally reacted to about a dozen answers now even though I did not want to take part in the feature test. This also does sometimes cause an error message (which can be seen in your screenshot) when the accepted answer is your own, in which case you're not allowed to react to it.

(Also reported on the announcement post)

3
  • 2
    I see in my "votes and reactions" activity that this is indeed the case.
    – CodeCaster
    Commented Jul 7, 2020 at 10:06
  • 4
    @CodeCaster I'm going to undo these now. At least they're not locked in.
    – Bergi
    Commented Jul 7, 2020 at 10:09
  • 6
    Ah, mystery solved! I was wondering how that "thanks" reaction snuck into my profile history, as I definitely didn't use that feature intentionally.
    – Cody Gray Mod
    Commented Jul 9, 2020 at 15:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .