Have a way to prevent users from clicking on a link when they click outside of the dropdown menu
Closed, ResolvedPublic

Description

From that feedback.

When you click outside of the dropdown menu to close it, there is a risk you click on [revert] by accident which can be problematic.
Have a way to prevent that would be very helpful.

Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptOct 6 2017, 4:57 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Soulkeeper added a subscriber: Soulkeeper.

We could intercept all clicks in the results area while the menu is open, and make it so that the first click closes the menu but doesn't do anything else (like revert an edit). You'd have to click a second time to hit the revert button. That's probably pretty easy to do with an overlay.

(cc @Mooeypoo )

Change 389753 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/core@master] Add overlay to list of changes

https://gerrit.wikimedia.org/r/389753

Change 389753 merged by jenkins-bot:
[mediawiki/core@master] Add overlay to list of changes

https://gerrit.wikimedia.org/r/389753

Checked in betalabs - the fix works exactly as @Catrope:

the first click closes the menu but doesn't do anything else (like revert an edit). You'd have to click a second time to hit the revert button.

Etonkovidova closed this task as Resolved.Dec 11 2017, 9:16 PM