Skip to content

Fix PDF labeler input focus loss - #294

Merged
nonprofittechy merged 1 commit into
mainfrom
typing-race-condition
Sep 17, 2026
Merged

nonprofittechy merged 1 commit into
mainfrom
typing-race-condition

Conversation

@nonprofittechy

Copy link
Copy Markdown
Member

Typing a PDF field label or multiple-choice option caused the field list to rerender and replace the active control after the first character. The labeler now restores the active editor and its cursor after necessary rerenders, and it keeps an empty choice list intact while the user is still editing it.

The new browser regression types character-by-character into both the field-name and choice-options controls.

Validation:

  • npm run test:pdf-labeler-focus
  • npm run test:dialogs
  • npm run check
  • .venv/bin/python -m pytest -q docassemble/ALDashboard/test/test_pdf_export_utils.py docassemble/ALDashboard/test/test_pdf_attachment_block.py docassemble/ALDashboard/test/test_labeler_js_extraction.py (63 passed)

@nonprofittechy
nonprofittechy merged commit 9733bc1 into main Sep 17, 2026
6 checks passed
@nonprofittechy
nonprofittechy deleted the typing-race-condition branch September 17, 2026 12:56
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