-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(TextArea): rows logic #1714
base: main
Are you sure you want to change the base?
Conversation
Preview is ready. |
Visual Tests Report is ready. |
may be it is extra now. I did not check |
|
||
control.style.height = 'auto'; | ||
let currentRowsNumber = (innerValue?.match(/\n/g) || []).length + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not work in case of long strings without \n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, better calculate rows number depend on height
690c4b5
to
c7e5ee4
Compare
c7e5ee4
to
f887139
Compare
It will be very useful to have y scrollbar depending not only on
rows
ormaxRows
values, but onheight
of theTextArea
.now it is possible to pass
height
value viaTextAreaProps.className
to see y-scrollbar