You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* make Textarea always scroll to bottom on height change
this fixes issue where Firefox wouldnt auto scroll as the user typed in a quiet custom height textarea. The overflow style shifts cause the scroll position to remain static once we hit the user specified height
* replace scrollTop solution with selectionRange instead
scrollTop solution doesnt work if the user is in the middle of the textarea and starts deleting stuff since it will cause the scroll to jump to the bottom, this feels a bit gross because of the raf
* adjusting approach back to scrollTop to avoid raf
* simplifying logic
* fixing FF autoscroll issue with scrollbar-width instead
* fix tests
* fix ssr tests
* Apply review suggestion
Co-authored-by: Devon Govett <[email protected]>
* hack to fix Firefox autoscroll issue
FF 104 introduces a bug where setting the input height directly doesnt actually change the height if overflow/scrollbar-width is reset. We decided to remove the overflow setting if we are in FF, note that this will bring the following bug back: #3379 (review)
* adding filed brower bug
Co-authored-by: Devon Govett <[email protected]>
Co-authored-by: Danni <[email protected]>
0 commit comments