autosize icon indicating copy to clipboard operation
autosize copied to clipboard

[6.0.0 regression] Disabled horizontal scrollbar appears when reaching max-height

Open andersk opened this issue 2 years ago • 4 comments

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/ good
  • 6.0.1 (bad): https://jsfiddle.net/anderskaseorg/mtn9cb83/2/ bad

Screenshots from Chromium 114.0.5735.90 on Linux.

andersk avatar Jun 06 '23 00:06 andersk

any chances this will be fixed soon? :)

muecke87 avatar Jul 18 '23 09:07 muecke87

I didn't upgrade too. In the commit supplied above, before it was setting overflowY to scroll, now it's setting overflow.

paparent avatar Jul 19 '23 11:07 paparent

Same issue here

aderchox avatar Oct 13 '23 13:10 aderchox