Skip to main content
3 of 3
edited tags
Shog9 Mod
  • 159.4k
  • 177
  • 1.2k
  • 1.2k

Add duplicate modal does not get focus and does not accept Enter

Gold tag badge holders can edit the list of duplicate targets of a question that is closed as duplicate by clicking the "edit" link:

edit duplicate list

When you click that link, you navigate to the "edit originals" page, where you can add another duplicate target:

add duplicate target

However, the modal window that appears after clicking Add, doesn't function exactly like the initial window when closing the question in the first place.

Firstly, the textbox where you can enter a link, search term or question ID doesn't get the focus when it's shown:

textbox without focus

Secondly, when you do put the focus on that element and paste or enter a value and press Enter, the preview of the question loads (and reloads on every successive Enter press), but the chosen question isn't selected: you have to explicitly click the "Add Original" button.

the button that doesn't trigger on Enter

In my opinion, those two issues are bugs, because they differ in functionality from the default duplicate modal window.

CodeCaster
  • 151.3k
  • 33
  • 187
  • 311