**List of steps to reproduce** (step by step, including full links if applicable):
* In VisualEditor (VE), paste:
(or edit https://pl.wikipedia.org/wiki/Wikipedysta:MarMi_wiki/test_ref_point in VE)
* Try to edit  (test1) and  (test2)
 (test1) and  (test2) aren't editable (the edit dialog doesn't show up if you click on the ref. You can still use arrow cursors to get the edit dialog)
**What should have happened instead?**:
 (test1) and  (test2) should be editable, like  (test0) and  (test3)
**Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.**:
On pl (https://pl.wikipedia.org/wiki/Noj_Giter-Granatsztajn#Publikacje) and en versions of Wikipedia (at least, didn't checked the others).
Additionally, if you carefully hover over the top of reference box (/test0 or /test3), mouse pointer changes to a hand - and if you click, page will scroll to the beginning of edited article (if edited article takes more than one screen page).