- 🇮🇳India Vivek Panicker Kolkata
I confirm that this issue still exists on vanilla Drupal 11 install.
My system config is this:I have generated a Drupal form using
drush gen
command which provides a text area by default.
I just added `'#resizable' => 'none',` to it.
After doing that, the text area is still resizable. - 🇮🇳India Vivek Panicker Kolkata
I did some debugging and found that the resizable argument is not sent to twig for the text area.
- Merge request !7842Issue #2787025: Added missing variables to textarea twig template. → (Open) created by Vivek Panicker
- 🇮🇳India Vivek Panicker Kolkata
I have raised an MR to fix the issue.
The Twig template seemed to have the variables defined in the docblock but were not using them.
I have added them now back to the code. - Issue was unassigned.
- Status changed to Needs review
4 months ago 4:13am 30 April 2024 - Status changed to Needs work
4 months ago 1:36pm 30 April 2024 - 🇺🇸United States smustgrave
Issue summary should follow standard issue template.
Will need test coverage
That said I don't think this is the correct solution as it requires all these template types to be updated. Values should be added to attributes array in code so no templates need to be updated
- 🇮🇳India Vivek Panicker Kolkata
Seems like as part of https://www.drupal.org/project/drupal/issues/2407745 → , we have removed some code from the template but missed removing the documentation for it.
That's great actually, becuase that is what helped me to backtrace the changes.Looks like these changes were done considering the classy theme but it is now breaking in newer versions of Drupal.
So should we revert the code instead to how it was here instead of how it has been done in the current MR?