Fix event location detection for the branch list
What does this MR do and why?
Contributes to #408438 (closed)
Follow-up for !118775 (merged)
Problem
target points exactly to the clicked event. Because of that, we cannot
correctly discover and unfold the branch list element.
Solution
Use currentTarget method to avoid this situation.
How to set up and validate locally
- Open http://127.0.0.1:3000/root/gitlab-test/-/commit/ddd0f15ae83993f5cb66a927a28673882e99100b
- Click on
... - You should see all related branches
- Refresh the page
- Click on area around
... - You should see all related branches
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin