• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

worktile / slate-angular / f98ec7f5-1703-401d-9713-95275acc10cd
36%
master: 36%

Build:
Build:
LAST BUILD BRANCH: fix/firefox-external-input-focus-steal
DEFAULT BRANCH: master
Ran 10 Sep 2026 08:40AM UTC
Jobs 1
Files 44
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2026 08:39AM UTC coverage: 35.683% (+0.4%) from 35.308%
f98ec7f5-1703-401d-9713-95275acc10cd

Pull #344

circleci

pubuzhixing8
fix(core): do not sync selection while a text input outside the editor is focused

In Firefox the DOM selection stays in the editor after a text input outside the
editor gets focus (Chrome moves it out). When the editor re-renders, e.g. an
external search box changes `decorate`, `toNativeSelection` found the DOM
selection out of sync and called `setBaseAndExtent`, and since Firefox 55 setting
a selection inside an editing host moves focus to it, so it stole focus from the
input: typing "the" in the search-highlighting demo left "t" in the input and
"he" in the editor.

The re-render also replaces the text node holding the stale DOM selection, and
the following `selectionchange` synced it back to the editor selection.

- skip `toNativeSelection` when a text input outside the editor is focused
- skip syncing the DOM selection to the editor in `toSlateSelection` in that
  case, after the existing "not in editor -> deselect" check so Chrome is unchanged

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #344: fix(core): do not sync selection while a text input outside the editor is focused

423 of 1392 branches covered (30.39%)

Branch coverage included in aggregate %.

12 of 15 new or added lines in 2 files covered. (80.0%)

1146 of 3005 relevant lines covered (38.14%)

23.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
23.38
6.45% packages/src/utils/dom.ts
Jobs
ID Job ID Ran Files Coverage
1 f98ec7f5-1703-401d-9713-95275acc10cd.1 10 Sep 2026 08:40AM UTC 44
35.68
Source Files on build f98ec7f5-1703-401d-9713-95275acc10cd
  • Tree
  • List 44
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #F98EC7F5...
  • Pull Request #344
  • PR Base - master (#15227801...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc