How to get cursor position in TextArea ?

In Vaadin 10 with TextArea component, there is any way to get cursor position?

Currently there’s no public API for that. Here’s the issue to follow: https://github.com/vaadin/vaadin-text-field-flow/issues/65

As a workaround, you should be able to get the cursor position from the web component with the following JavaScript: this.focusElement.selectionEnd. My Flow knowledge is a bit limited, so I don’t know exactly how you can access that from the server-side, but I think it should be possible.