more cleanup
This commit is contained in:
parent
20b3e2ef58
commit
797bf3c471
|
@ -191,8 +191,6 @@ export default class Composer extends RestModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
@service dialog;
|
@service dialog;
|
||||||
@service capabilities;
|
|
||||||
@service site;
|
|
||||||
|
|
||||||
@tracked topic;
|
@tracked topic;
|
||||||
@tracked post;
|
@tracked post;
|
||||||
|
|
|
@ -15,7 +15,6 @@ import {
|
||||||
cannotPostAgain,
|
cannotPostAgain,
|
||||||
durationTextFromSeconds,
|
durationTextFromSeconds,
|
||||||
} from "discourse/helpers/slow-mode";
|
} from "discourse/helpers/slow-mode";
|
||||||
import { clearAllBodyScrollLocks } from "discourse/lib/body-scroll-lock";
|
|
||||||
import { customPopupMenuOptions } from "discourse/lib/composer/custom-popup-menu-options";
|
import { customPopupMenuOptions } from "discourse/lib/composer/custom-popup-menu-options";
|
||||||
import prepareFormTemplateData, {
|
import prepareFormTemplateData, {
|
||||||
getFormTemplateObject,
|
getFormTemplateObject,
|
||||||
|
@ -1849,7 +1848,6 @@ export default class ComposerService extends Service {
|
||||||
const elem = document.documentElement;
|
const elem = document.documentElement;
|
||||||
elem.classList.remove("fullscreen-composer");
|
elem.classList.remove("fullscreen-composer");
|
||||||
elem.classList.remove("composer-open");
|
elem.classList.remove("composer-open");
|
||||||
clearAllBodyScrollLocks();
|
|
||||||
|
|
||||||
document.activeElement?.blur();
|
document.activeElement?.blur();
|
||||||
document.documentElement.style.removeProperty("--composer-height");
|
document.documentElement.style.removeProperty("--composer-height");
|
||||||
|
|
Loading…
Reference in New Issue