Caret position lost after pasting text to input field

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.

on it!

1 Like

Here we are:
Fix copy paste caret positioning by deltakosh · Pull Request #15309 · BabylonJS/Babylon.js (github.com)

1 Like