FIX: Weird UX with d-editor for topic templates

This commit is contained in:
Robin Ward 2015-11-06 15:10:28 -05:00
parent e2a663bff1
commit cd1b83997b
2 changed files with 1 additions and 5 deletions

View file

@ -3,10 +3,7 @@ import { buildCategoryPanel } from 'discourse/components/edit-category-panel';
export default buildCategoryPanel('topic-template', {
_activeTabChanged: function() {
if (this.get('activeTab')) {
const self = this;
Ember.run.schedule('afterRender', function() {
self.$('.d-editor-input').focus();
});
Ember.run.scheduleOnce('afterRender', () => this.$('.d-editor-input').focus());
}
}.observes('activeTab')
});

View file

@ -71,7 +71,6 @@
color: $primary;
border: 1px dashed dark-light-diff($primary, $secondary, 90%, -60%);
overflow: auto;
visibility: visible;
cursor: default;
margin-top: 8px;
padding: 8px 8px 0 8px;