FIX: Weird UX with `d-editor` for topic templates
This commit is contained in:
parent
e2a663bff1
commit
cd1b83997b
|
@ -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')
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue