Anchor tracker to local action bar instead of post-level wrapper

This commit is contained in:
2026-02-26 00:55:31 +01:00
parent e28eb052b7
commit 51dc2c191c

View File

@@ -463,9 +463,9 @@ function getDirectActionAnchorInPost(postElement, buttonBar) {
return null;
}
return getTopLevelAnchorWithinPost(postElement, resolvedButtonBar)
|| getTrackerInsertionAnchorInPost(postElement, resolvedButtonBar)
|| resolvedButtonBar;
// Use the local action bar container directly.
// Promoting to post-level wrappers can place the marker below the entire comments block.
return resolvedButtonBar;
}
function getTopLevelAnchorWithinPost(postElement, element) {