autosize
autosize copied to clipboard
[6.0.0 regression] Disabled horizontal scrollbar appears when reaching max-height
When using autosize on a <textarea> with a CSS max-height, after typing enough content to reach the max-height, autosize 6.0.0 and 6.0.1 unexpectedly adds a disabled horizontal scrollbar in addition to the expected vertical scrollbar.
Based on git bisect, 8389fc92f14a1485e2f949941ef4e3db2a222fcd is the first commit with this issue.
This prevents Zulip from upgrading to autosize 6 (zulip/zulip#25087).
Demo
- 5.0.2 (good): https://jsfiddle.net/anderskaseorg/mtn9cb83/1/
- 6.0.1 (bad): https://jsfiddle.net/anderskaseorg/mtn9cb83/2/
Screenshots from Chromium 114.0.5735.90 on Linux.
any chances this will be fixed soon? :)
I didn't upgrade too. In the commit supplied above, before it was setting overflowY to scroll, now it's setting overflow.
Same issue here