# Weird cursor behavior with decoration widgets

**URL:** <https://discuss.prosemirror.net/t/weird-cursor-behavior-with-decoration-widgets/910>\
**Category:** Uncategorized\
**Created:** [August 1, 2017, 3:24pm UTC](https://discuss.prosemirror.net/t/weird-cursor-behavior-with-decoration-widgets/910 "2017-08-01T15:24:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FelipeTaiarol](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/f/f19dbf/32.png) [@FelipeTaiarol](https://discuss.prosemirror.net/u/FelipeTaiarol)\
**Post date:** [August 1, 2017, 3:24pm UTC](https://discuss.prosemirror.net/t/weird-cursor-behavior-with-decoration-widgets/910/1 "2017-08-01T15:24:28Z")

</div>

I am facing a problem which I was also able to reproduce in the linting demo.

If you have a decoration widget in the middle of a text, the cursor goes to a weird position when it gets close to it. This only happens when you place the cursor after the widget and then move it backwards.

 ![](https://discuss.prosemirror.net/uploads/secondsite/original/1X/c91dd92554ebbdb8d17d2eefaecd9a1d2b57ecb5.png)

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [August 1, 2017, 4:10pm UTC](https://discuss.prosemirror.net/t/weird-cursor-behavior-with-decoration-widgets/910/2 "2017-08-01T16:10:16Z")

</div>

Browsers do a lot of weird things like that around non-plain-text nodes. You can try finding a styling kludge to work around it – in this case maybe setting `.probarrow`'s position to absolute works – but unfortunately there’s no general solution that ProseMirror can provide for you.

---

<div class="post-metadata">

**Author:** ![FelipeTaiarol](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/f/f19dbf/32.png) [@FelipeTaiarol](https://discuss.prosemirror.net/u/FelipeTaiarol)\
**Post date:** [August 1, 2017, 5:15pm UTC](https://discuss.prosemirror.net/t/weird-cursor-behavior-with-decoration-widgets/910/3 "2017-08-01T17:15:52Z")

</div>

That helped, thanks!
