Skip to content

fix(ew): exclude section-metadata from block indexing to fix outline panel offset#1088

Merged
usman-khalid merged 1 commit into
mainfrom
sm-off
Jul 10, 2026
Merged

fix(ew): exclude section-metadata from block indexing to fix outline panel offset#1088
usman-khalid merged 1 commit into
mainfrom
sm-off

Conversation

@usman-khalid

@usman-khalid usman-khalid commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Fixes a bug in the EW page outline where blocks after section-metadata were selected incorrectly, because getBlockPositions counted section-metadata tables while the outline strips them.

Fix is to skip section-metadata (and page metadata) in getBlockPositions so editor indices match the outline

BEFORE:
2026-07-09 21 22 12

AFTER:
2026-07-09 21 22 33

@aem-code-sync

aem-code-sync Bot commented Jul 10, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@usman-khalid usman-khalid changed the title fix(ew): exclude section-metadata from block indexing to fix outline … fix(ew): exclude section-metadata from block indexing to fix outline panel offset Jul 10, 2026

@mhaack mhaack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@usman-khalid usman-khalid merged commit af0a03f into main Jul 10, 2026
4 of 5 checks passed
@usman-khalid usman-khalid deleted the sm-off branch July 10, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants