What is the problem?
If I dismiss the "Insert link" dialog by clicking the "Cancel" button, on subsequent uses of the dialog pressing the Enter key will not insert a link. It will just dismiss the dialog without doing anything.
The dialog becomes much harder to use with a keyboard. You have to use the tab key to highlight the "Insert link" button and then press enter.
Clicking the "Insert link" button will work.
To get it working again you have to either:
- enter a valid link by clicking the "Insert link" button (for some reason this resets the state of the dialog)
- refresh the page
I have only been able to reproduce this on Firefox (78 and 95) and Chrome (87 and 96). I have not been able to reproduce this on Safari 14.
Steps to reproduce problem
- Open any article with the WikiEditor (e.g. https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Page_preview_of_using_the_translate_tag&action=edit)
- Click the "Insert link" menu item (tooltip is "Link")
- Click the "Cancel" button
- Open the dialog again
- Type something
- If a search dropdown appears, select anything (either with the mouse or the keyboard)
- Press the Enter key
Expected behavior: The link will be inserted into the wikitext (e.g. [[Link]]).
Observed behavior: Nothing is inserted.
Environment
Browser: Firefox 95 and Chrome 96.
Wiki(s): https://en.wikipedia.beta.wmflabs.org, MediaWiki 1.38.0-alpha (a23cbc1) 16:47, 4 January 2022, WikiEditor 0.5.3 (c9c494d) 07:28, 4 January 2022.
Editor, if applicable: WikiEditor