Skip to content
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

UX: Textarea size does not adjust when located in tab, which is not active #6640

Open
a-r-m-i-n opened this issue Dec 12, 2024 · 0 comments
Open

Comments

@a-r-m-i-n
Copy link
Contributor

Describe the bug
Textareas in edit action usually adjust their height depending on the contents. When a textarea contains more rows than the textarea initially has, a JavaScript functions increases the height of the textarea, when the edit action is loaded.

This does not work when the textarea is located in a tab, which is not active, on load. When you then switch to the tab, the textarea remains its initial size, until you trigger the onchange event. Alternativley you can switch to the tab (which appends #tab-mytab to the URL) and refresh the page, then size adjustment works.

To Reproduce
Create a textarea field within a second tab. Add more content rows than the textarea initially has. Return to index action. Open the edit action again (so you start in the first tab). Switch to the second tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant