Forms: Multi-Line Text Field width options don't work as expected after the input has been resized using the drag handle #41419
Labels
[Experiment] AI labels added
[Feature] Contact Form
[Feature] Forms Blocks
Blocks designed to streamline user input and engagement, such as contact, newsletter sign-ups, etc.
[Feature Group] Editor Experience
Features related to Gutenberg integration on WordPress.com.
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Low
[Status] Auto-allocated
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
If you resize the Multi-Line Text Field using the drag handle in the bottom right corner of the textarea, and then try setting a width from the block inspector, the input won't adopt the correct size in the editor (it still works ok on the frontend).
The drag handle is setting an inline width style on the
<textarea>
element, which doesn't work so well with the block's other styles, as they rely on setting a width on the block wrapper.Additionally, using the drag handle to resize the textarea doesn't affect the frontend styles at all, so maybe it should be prevented (using css like
width: 100% !important; height: auto !important;
might be one way, there might also be others). Or it could be supported, but this seems like it would be inconsistent with other fields. Though support for a height might be nice.Steps to reproduce
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Minor
What other impact(s) does this issue have?
No revenue impact
If a workaround is available, please outline it here.
The problem goes away if the user reloads the browser, so not a critical issue, but it might be a confusing experience.
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
The text was updated successfully, but these errors were encountered: