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', {
|
export default buildCategoryPanel('topic-template', {
|
||||||
_activeTabChanged: function() {
|
_activeTabChanged: function() {
|
||||||
if (this.get('activeTab')) {
|
if (this.get('activeTab')) {
|
||||||
const self = this;
|
Ember.run.scheduleOnce('afterRender', () => this.$('.d-editor-input').focus());
|
||||||
Ember.run.schedule('afterRender', function() {
|
|
||||||
self.$('.d-editor-input').focus();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}.observes('activeTab')
|
}.observes('activeTab')
|
||||||
});
|
});
|
||||||
|
|
|
@ -71,7 +71,6 @@
|
||||||
color: $primary;
|
color: $primary;
|
||||||
border: 1px dashed dark-light-diff($primary, $secondary, 90%, -60%);
|
border: 1px dashed dark-light-diff($primary, $secondary, 90%, -60%);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
visibility: visible;
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
padding: 8px 8px 0 8px;
|
padding: 8px 8px 0 8px;
|
||||||
|
|
Loading…
Reference in New Issue