# Down arrow navigation interrupted by inline widget on its own line

**URL:** https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662
**Category:** v6
**Created:** [February 1, 2026, 7:29am UTC](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662 "2026-02-01T07:29:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tiredstudent](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)
#### Post date: [February 1, 2026, 7:29am UTC](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662/1 "2026-02-01T07:29:27Z")

</div>

Hi! I encountered an issue where pressing down arrow doesn’t move the cursor down when the whole inline widget element happens to be on its own line, perhaps due to being wrapped.

Curiously, it only happens when the whole widget (the grey “Line end dec” text span) is wrapped.

 ![image](https://discuss.codemirror.net/uploads/default/original/2X/c/cde88e917ded9be199a655cd4ac7c5b3927af7ce.png)

In the case below where the wrap splits the widget, navigation with down arrow works as expected

 ![image](https://discuss.codemirror.net/uploads/default/original/2X/e/e7a9b213f82a3f33aaebfa49b9f09e702f4fcd55.png)

Here’s a [reproduction link](https://codemirror.net/try/#c=aW1wb3J0IHtiYXNpY1NldHVwfSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge2phdmFzY3JpcHR9IGZyb20gIkBjb2RlbWlycm9yL2xhbmctamF2YXNjcmlwdCIKaW1wb3J0IHtFZGl0b3JWaWV3LCBEZWNvcmF0aW9uLCBXaWRnZXRUeXBlfSBmcm9tICJAY29kZW1pcnJvci92aWV3IgppbXBvcnQge1N0YXRlRmllbGR9IGZyb20gIkBjb2RlbWlycm9yL3N0YXRlIgoKCgpjbGFzcyBMaW5lRW5kV2lkZ2V0IGV4dGVuZHMgV2lkZ2V0VHlwZSB7CiAgdG9ET00oKSB7CiAgICBjb25zdCBkb20gPSBkb2N1bW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R1cCwgamF2YXNjcmlwdCgpLCBkZWNGaWVsZF0sCiAgcGFyZW50OiBkb2N1bWVudC5ib2R5Cn0pCg==) though you might need to adjust the text in the first line to induce wrapping.

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [February 3, 2026, 9:41am UTC](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662/2 "2026-02-03T09:41:06Z")

</div>

This patch should fix this.

> <https://github.com/codemirror/view/commit/dabe3eb6420081df9819c489acafcad58a85285a>
>
> FIX: Fix an issue where a widget at start or end of line, when wrapped to cover …that whole line,
> could block vertical cursor motion.
> 
> See https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662

---

<div class="post-metadata">

### Author: ![tiredstudent](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@tiredstudent](https://discuss.codemirror.net/u/tiredstudent)
#### Post date: [February 4, 2026, 2:01am UTC](https://discuss.codemirror.net/t/down-arrow-navigation-interrupted-by-inline-widget-on-its-own-line/9662/3 "2026-02-04T02:01:27Z")

</div>

Yep that did. Thank you very much!
