Steps to replicate the issue (include links if applicable):
- Assume the following wikitext
<ref name="miller">Miller: main content is part of 1st occurence in text</ref> Some content here <ref name="miller"></ref>
Or create a ref, copy paste in VE and add details via the dialog.
What happens?:
- The main content of the reference moves into the second [1]
What should have happened instead?:
The main content must stay where it was originally defined.
Notes:
- There is no content loss but this behavior might be considered as a dirty diff by some wikitext editors
- Unintended diff
There's another flavor of this issue. See T404089: VisualEditor moves main content unexpectedly up to another reuse when details are added (unintended diff). I suggest an additional more stable fix in there.

