Skip to content

Fix gloss-input focus steal on non-first morpheme form cell click#135

Merged
imnasnainaec merged 2 commits into
morpheme-box-gridfrom
mbg2
Jul 2, 2026
Merged

Fix gloss-input focus steal on non-first morpheme form cell click#135
imnasnainaec merged 2 commits into
morpheme-box-gridfrom
mbg2

Conversation

@imnasnainaec

@imnasnainaec imnasnainaec commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Suggested update to #132

Summary

  • Merge in main
  • Non-first morpheme form cells in MorphemeBox are presentational spans (not buttons). A mousedown on one bubbled up to TokenChip's label handler, which only recognizes input/button targets, so it fell through and focused the gloss input before the popover opened — triggering an unintended phrase-centering scroll.
    • Fixed by stopping the span's mousedown from bubbling, and added coverage for clicking a non-first cell plus a regression test for the bubbling fix.
  • Filled in test gap

🤖 Generated with Claude Code

Devin review: https://app.devin.ai/review/sillsdev/interlinearizer-extension/pull/135


This change is Reviewable

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f8f3134e-e0ab-468d-b234-0c3a05d11378

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mbg2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@imnasnainaec imnasnainaec marked this pull request as ready for review July 1, 2026 21:51
Clicking a span (non-first) form cell in MorphemeBox bubbled its
mousedown up to TokenChip's label handler, which only recognizes
input/button targets and so treated the span as unhandled, focusing
the gloss input before the popover opened.
Prior tests only exercised the first (button) form cell; the span
cells' click and mousedown-bubbling behavior had no coverage.

@alex-rawlings-yyc alex-rawlings-yyc 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.

@alex-rawlings-yyc reviewed 25 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on imnasnainaec).

@imnasnainaec imnasnainaec merged commit 677b7b0 into morpheme-box-grid Jul 2, 2026
2 checks passed
@imnasnainaec imnasnainaec deleted the mbg2 branch July 2, 2026 15:42
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