FIX: Mentions were refreshing too frequently

This commit is contained in:
Robin Ward 2016-10-31 13:19:23 -04:00
parent 782b062baa
commit e07dfe16d7
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ export default Ember.Component.extend({
markdownOptions.siteSettings = this.siteSettings;
this.set('preview', cook(value));
Ember.run.next(() => {
Ember.run.scheduleOnce('afterRender', () => {
if (this._state !== "inDOM") { return; }
const $preview = this.$('.d-editor-preview');
if ($preview.length === 0) return;