FIX: rendering multiple polls in the same post was broken

This commit is contained in:
Régis Hanol 2016-11-30 22:59:58 +01:00
parent 142d35a0a5
commit 28b7ef7142
2 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,7 @@ function initializePolls(api) {
); );
$poll.replaceWith($div); $poll.replaceWith($div);
Em.run.schedule('afterRender', () => pollComponent.renderer.replaceIn(pollComponent, $div[0])); Em.run.schedule('afterRender', () => pollComponent.renderer.appendTo(pollComponent, $div[0]));
postPollViews[pollId] = pollComponent; postPollViews[pollId] = pollComponent;
}); });