**Steps to replicate the issue** (include links if applicable):
- Start with two pages with the following Wikitext
```
<ref name="book" details="page 1">Miller</ref>
```
And
```
<ref name="book" details="page 2">Smith</ref>
````
- Open the pages in VE in different tabs
- Copy the `Miller` sub-ref from one tab into the other
- Preview the Wikitext changes
**What happens?**:
- The sub-ref will be added as [1.2]
- In the reflist it's a sub-ref of the `Smith` main ref
- The main ref `Miller` is not copied over and lost
- Wikitext of the sub-ref is `<ref name="book" details="page 1" />`
**What should have happened instead?**:
- The sub-ref will be added as [2.1]
- You see a new main ref with `Miller` having a sub-ref with `page 1`
- Wikitext of the sub-ref is `<ref name="book2" details="page 1">Miller</ref>` ( `book2` is a name that does not collide with an existing one )