Skip to content

fix: guard the fixed back-button restore against a removed sibling - #10

Open
jongbonga wants to merge 1 commit into
rdlabo-dev:mainfrom
jongbonga:fix/fixed-back-button-stale-sibling
Open

jongbonga wants to merge 1 commit into
rdlabo-dev:mainfrom
jongbonga:fix/fixed-back-button-stale-sibling

Conversation

@jongbonga

@jongbonga jongbonga commented Oct 11, 2026 •

Copy link
Copy Markdown

animateFixedBackButton restores the cloned ion-back-button with insertBefore using the body sibling captured when the transition was built. If that sibling leaves the DOM mid-transition, insertBefore throws NotFoundError inside Ionic's afterAddWrite callbacks, the transition promise never resolves and the router outlet stays locked. Check the sibling is still attached and otherwise append the clone.

Summary

Verification

Checklist

  • The change is focused and contains no unrelated edits.
  • Tests cover behavior changes.
  • Public documentation is updated where necessary.
  • No credentials, personal data, or proprietary files are included.

animateFixedBackButton restores the cloned ion-back-button with
insertBefore using the body sibling captured when the transition was
built. If that sibling leaves the DOM mid-transition, insertBefore throws
NotFoundError inside Ionic's afterAddWrite callbacks, the transition
promise never resolves and the router outlet stays locked. Check the
sibling is still attached and otherwise append the clone.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-11T02:17:05.254069Z 78048ea PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant