Edit textContent in async function,cursor lost

here’s my demo https://github.com/shlroland/Prosemirror-vite-demo

when i edit the textContent in the dom async in the nodeView and I insert a space text node after the node, the cursor will disappear at end the paragraph.

Is it a bug? iShot2021-09-27 09

sorry,it’s about chrome’s behavior。