bug: deleting first child node with siblings loses cursor
authorxangelo <git@xangelo.ca>
Tue, 24 Jan 2023 05:49:20 +0000 (00:49 -0500)
committerxangelo <git@xangelo.ca>
Tue, 24 Jan 2023 05:49:20 +0000 (00:49 -0500)
commit05848b84c3d31bea93301137b9fa2530668caaf5
treebedced821626ed8ef7ef8504968937ae47a3e77c
parent9c8fd8332808dc768f2b44ae90ce3ad12a204431
bug: deleting first child node with siblings loses cursor

When we delete the first child node that has siblings, when we attempt
to get the `prevSibling` to place the cursor on - it technically selects
a `nodeContent` container that doesn't have a `data-id` attribute.

This fix ensures that it is only possible to select nodes that have a
`data-id` attribute.
public/assets/bundle.js
src/client.ts