Custom HTML: Fix scrollbar becoming non-functional after switching tabs#78571
Custom HTML: Fix scrollbar becoming non-functional after switching tabs#78571Mustafabharmal wants to merge 1 commit into
Conversation
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
1 similar comment
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @at-ric. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Fixes a Custom HTML modal issue where the editor scrollbar can become non-functional after switching between HTML/CSS/JS tabs.
Closes #78545
Why?
Autosize initialization may run while the tab panel is not fully visible during tab transitions, leading to an incorrect initial size and broken scrolling behavior until another input event occurs.
How?
Use PlainText async autosize mode for the three tab editors (HTML, CSS, JS).
This defers initial autosize execution until after tab visibility updates complete.
Testing Instructions
Screenshots or screencast
Before:
Before.HTML.block.Fix.mov
After:
After.HTML.block.Fix.mov