Here is a Playground
Steps to reproduce :
- Copy some text line 20
- Paste it to the input field
Result is that the Caret (cursor) ends up in the middle, and at a pretty much random position.
If you delete and paste again it will be at another place. If you right “Hello”, select all, and paste, it will be yet at another place.