Skip to content

[6.x] Keep elastic textareas sized to their content - #15683

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
o1y:elastic-textarea-programmatic-resize
Oct 20, 2026
Merged

jasonvarga merged 2 commits into
statamic:6.xfrom
o1y:elastic-textarea-programmatic-resize

Conversation

@o1y

@o1y o1y commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Elastic textareas use autosize, which currently only resizes on input events and window resizes. Two things left a textarea at its old height, with the text clipped:

  • the value is changed programmatically (e.g. by a field action)
  • the textarea gets narrower without a window resize (e.g. when the nav sidebar is toggled)

(No core fieldtype uses elastic, so this mainly affects addons and custom fieldtypes using <ui-textarea elastic>)

@jasonvarga
jasonvarga merged commit 55dffa6 into statamic:6.x Oct 20, 2026
62 checks passed
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

Successfully merging this pull request may close these issues.

2 participants