From 4f25b2d21372420f0ed17187e728bd1aaef9833b Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 17 Apr 2019 06:50:08 +0800 Subject: [PATCH] DEV: the afterRender queue is too late Since the component adds dynamic id attributes to headings that don't have ids, we need to do things a bit sooner otherwise external linking to an anchor of a heading with dynamic id will not work. --- common/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/header.html b/common/header.html index b561e3d..fe592cb 100644 --- a/common/header.html +++ b/common/header.html @@ -257,7 +257,7 @@ })(() => {}); api.decorateCooked($elem => { - run.scheduleOnce("afterRender", () => { + run.scheduleOnce("actions", () => { if ($elem.hasClass("d-editor-preview")) return; if (!$elem.parents("article#post_1").length) return;