Is there a way to get the index of a character that is clicked on inside an input field?
For example, in an input field the value: "abc" is put.
and I click on the input field specifically on the "b".
I would like to know that the click was handled on index 1;
I have searched through the mouse event that is fired with an onClick and onFocus but couldn't find anything useful. The closest is the x and y position of the mouse click. But then you need to make an estimation on where the mouse would have clicked. And that won't be accurate once the input field is overflowing.