Hello everybody, we use this component in our project and have a wrong beha

Hello everybody,
we use this component in our project and have a wrong behavior when deleting a character with the delete key. The caret first jumps one character further and deletes the next character. (see short video attached)

As a result, there is always a script error when pressing the delete key in the empty editor - since the index is obviously not always correct.

Attachments
18583132.gif
18583135.gif

Why is a 1 added here? Without this addition, it seems to work correctly. (see Attachment)
18583143.png