I seem to be unable to use the template editor to insert or edit a template within a comment I am drafting using Flow.
//Note: I have also been able to reproduce this issue in the main namespace at mediawiki.org. //
=== Environment
//Where the issue was observed.//
- Wiki: mediawiki.org
- Browser: Chrome
- Platform: Desktop
//Note: as @Whatamidoing-WMF
=== Behavior
1. Visit a talk page where Flow / #StructuredDiscussions is enabled. //E.g. https://www.mediawiki.org/wiki/Talk:Talk_pages_project/Replying. //
2. Click any {nav Reply} link to initiate the process of drafting a comment
3. Type {key {{} to open the `Insert a template` dialog
4. With the `Insert a template` dialog open, type some letters to locate an existing template. //E.g. {key tq}.//
5. Click the `Talk quotation` result that appears within the search results
6. Add some text to the `Text` field. //In this case, I pasted in a sentence (all latin characters).//
7. Click {nav Insert}
**Actual**
8. ❗️A dialog appears that says `Close template editor? Changes will be lost and cannot be undone.`
**Expected**
8. ✅I'm returned to the comment I was drafting with the text I pasted in "Step 6." visible and styled