Steps to reproduce:
- Open a page with references for editing (or start a new page and add a list of references, which will initially be empty). When you test in enwiki, make sure that the list of references is not inserted via a template.
- Start inserting a new reference, use the way to generated from an URL.
- Create and insert the reference, note that the popup displays the contents as expected.
Expected:
The new reference is shown in the list of all references.
Actual:
There is a new reference in the list, but it is empty.
The console shows an error: TypeError: this.model is null
Making changes to the generated reference will make it eventually show up (in my tests 1 to 4 changes were needed, before it appeared).
Adding a new paragraph after the reference seems to consistently make it show up.
Using the same URL a second time will show the reference immediately after inserting.