Skip to content

Droid Chief fix#2721

Open
droidchief wants to merge 4 commits intosingerdmx:masterfrom
OnyemaAnthony:droid-chief-fix
Open

Droid Chief fix#2721
droidchief wants to merge 4 commits intosingerdmx:masterfrom
OnyemaAnthony:droid-chief-fix

Conversation

@droidchief
Copy link
Copy Markdown

Fix raw editor focus lifecycle crash after widget disposal

Problem

  • App can crash with: “Null check operator used on a null value” from Quill raw editor focus/keyboard flow during screen transitions.

Cause

  • A post-frame focus callback can run after the editor is disposed.
  • didUpdateWidget could re-attach focus listeners even in read-only transitions, increasing stale callback risk.

Fix

  • Added mounted guards in _handleFocusChanged and its post-frame recursion.
  • Updated didUpdateWidget focus-listener logic to only attach when appropriate (non-read-only) and always detach old listener safely.
  • Result: prevents stale focus callbacks from accessing disposed editor context.

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