* DEV: attempts to fix various leaks * scheduleOnce doesnt work with anon function * removes the I18n change
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
import { schedule } from "@ember/runloop";
|
|
import { buildCategoryPanel } from "discourse/components/edit-category-panel";
|
|
import { observes } from "discourse-common/utils/decorators";
|
|
|
|
export default buildCategoryPanel("topic-template", {
|
|
@observes("activeTab")
|
|
_activeTabChanged: function() {
|
|
if (this.activeTab) {
|
|
schedule("afterRender", () =>
|
|
this.element.querySelector(".d-editor-input").focus()
|
|
);
|
|
}
|
|
}
|
|
});
|