# NodeView form elements deselect/blur problem

**URL:** <https://discuss.prosemirror.net/t/nodeview-form-elements-deselect-blur-problem/1977>\
**Category:** Uncategorized\
**Created:** [May 28, 2019, 3:35pm UTC](https://discuss.prosemirror.net/t/nodeview-form-elements-deselect-blur-problem/1977 "2019-05-28T15:35:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexeygolev](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/alexeygolev/32/895_2.png) [@alexeygolev](https://discuss.prosemirror.net/u/alexeygolev)\
**Post date:** [May 28, 2019, 3:35pm UTC](https://discuss.prosemirror.net/t/nodeview-form-elements-deselect-blur-problem/1977/1 "2019-05-28T15:35:46Z")

</div>

I created a minimal example [here](https://glitch.com/edit/#!/rustic-scarf-1?path=index.js:27:4).

If I click on the input to start typing it selects the node and allows me to type. If I then click on the “images” word under the node the selection goes awry. The bottom copy of the block with an input works differently. If I focus the input and then click on the empty line below it deselects the node and puts the cursor into the correct position.

If you “tab” to focus the button next to the input and do the above the behaviour is the same.

---

<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:** [May 29, 2019, 12:07pm UTC](https://discuss.prosemirror.net/t/nodeview-form-elements-deselect-blur-problem/1977/2 "2019-05-29T12:07:16Z")

</div>

Thanks for isolating that! That was an issue someone had reported before, but hadn’t managed to demonstrate. [This patch](https://github.com/ProseMirror/prosemirror-view/commit/39a761792f98eb36709ea25dd17cf0215a4f7d6b) should help.

---

<div class="post-metadata">

**Author:** ![alexeygolev](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/alexeygolev/32/895_2.png) [@alexeygolev](https://discuss.prosemirror.net/u/alexeygolev)\
**Post date:** [May 29, 2019, 6:05pm UTC](https://discuss.prosemirror.net/t/nodeview-form-elements-deselect-blur-problem/1977/3 "2019-05-29T18:05:12Z")

</div>

Works! Thank you very much!
