Andarist / Andarist/react-textarea-autosize

rowCount doesn't exist on type "TextareaHeightChangeMeta"

Open
#286 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
247
PR merge metrics
No merged PRs in 30d

Description

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!)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.