Andarist / Andarist/react-textarea-autosize

rowCount doesn't exist on type "TextareaHeightChangeMeta"

Aperta
#286 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
2.4k
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello! Thank you for this great component!

I am interested in determining in which line the cursor is currently placed, and I thought I might find a solution involving rowCount. When I tried to log it, as demonstrated in [the demo](https://andarist.github.io/react-textarea-autosize/), I received this error:
`Property 'rowCount' does not exist on type 'TextareaHeightChangeMeta'.`

I though you might want to know that there seems to be a mismatch between the API and the docs.

(also, if you happen to know of any way that I can determine if the cursor is placed on the first line or the last line of the textarea, I would be very grateful to know!)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.