A platform for community discussion. Free, open, simple.
DEV: ensures PostTextSelection is destroyed (#31730)
Joffrey JAFFEUX137e8a0fa023
diff --git a/app/assets/javascripts/discourse/app/templates/topic.hbs b/app/assets/javascripts/discourse/app/templates/topic.hbsindex 5b364af76d5..fb75b4da771 100644--- a/app/assets/javascripts/discourse/app/templates/topic.hbs+++ b/app/assets/javascripts/discourse/app/templates/topic.hbs@@ -630,11 +630,13 @@</div>{{/if}}- <PostTextSelection- @quoteState={{this.quoteState}}- @selectText={{action "selectText"}}- @buildQuoteMarkdown={{this.buildQuoteMarkdown}}- @editPost={{action "editPost"}}- @topic={{this.model}}- />+ {{#each (array this.model) as |topic|}}+ <PostTextSelection+ @quoteState={{this.quoteState}}+ @selectText={{action "selectText"}}+ @buildQuoteMarkdown={{this.buildQuoteMarkdown}}+ @editPost={{action "editPost"}}+ @topic={{topic}}+ />+ {{/each}}</DiscourseTopic>\ No newline at end of file