Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix textarea resizing bug #2182

Merged
merged 7 commits into from
Oct 4, 2024
Merged

Conversation

KonnorRogers
Copy link
Collaborator

@KonnorRogers KonnorRogers commented Sep 23, 2024

Fixes #2180

This is some weird mix of https://chriscoyier.net/2023/09/29/css-solves-auto-expanding-textareas-probably-eventually/ and the existing code.

I tested it in:

Chrome 129
Firefox 130.1
Safari 17.5

and it seems to fix the scroll jumping.

Here's the "fixed" fiddle:

https://jsfiddle.net/n158gvy7/3/

Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Oct 2, 2024 9:14pm

@KonnorRogers KonnorRogers merged commit 61f2fdb into next Oct 4, 2024
2 checks passed
qwtel added a commit to qwtel/shoelace that referenced this pull request Nov 9, 2024
This reverts commit 61f2fdb.

# Conflicts:
#	docs/pages/resources/changelog.md
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto resizing sl-textarea makes page scroll to top when typing
2 participants