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

worktile / slate-angular / 16e9a457-9f0b-4a05-9342-c56cd627f2ba
36%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2026 08:56AM 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:55AM UTC coverage: 35.683% (+0.4%) from 35.308%
16e9a457-9f0b-4a05-9342-c56cd627f2ba

push

circleci

web-flow
fix(core): do not sync selection while a text input outside the editor is focused (#344)

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>

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.06 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 16e9a457-9f0b-4a05-9342-c56cd627f2ba.1 10 Sep 2026 08:56AM UTC 44
35.68
Source Files on build 16e9a457-9f0b-4a05-9342-c56cd627f2ba
  • 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 #16E9A457...
  • 571cb771 on github
  • Prev Build on 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