You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TextField.TextArea component is not triggering a resize when the text signal changes by its setter. This means that when the content of the textarea is updated programmatically, the component doesn't automatically adjust its height as expected.
To Reproduce
Steps to reproduce the behavior:
Create a TextField.TextArea component with the autoResize prop set to true.
Set up a signal to control the textarea's content (using the value prop).
Update the signal's value programmatically (e.g., through a button click or effect).
Observe that the textarea's height does not adjust to fit the new content.
When the content of the TextFieldTextArea is updated either through user input or programmatically via a signal, the component should automatically resize to fit the new content if the autoResize prop is set to true.
Screenshots
Screen.Recording.2024-09-04.at.00.07.06.mov
Desktop:
OS: MacOS Sonoma 14.5
Browser: Arc
Version: 1.57.1 (Chromium version 128.0.6613.85)
Additional context
Listening to the value prop passed to TextFieldTextArea will fix the problem. In the means of:
Describe the bug
The
TextField.TextArea
component is not triggering a resize when the text signal changes by its setter. This means that when the content of the textarea is updated programmatically, the component doesn't automatically adjust its height as expected.To Reproduce
Steps to reproduce the behavior:
TextField.TextArea
component with the autoResize prop set to true.value
prop).Demo: https://stackblitz.com/edit/github-b14x5v-a9ch1g?file=src%2FApp.tsx
Expected behavior
When the content of the TextFieldTextArea is updated either through user input or programmatically via a signal, the component should automatically resize to fit the new content if the autoResize prop is set to true.
Screenshots
Screen.Recording.2024-09-04.at.00.07.06.mov
Desktop:
Additional context
Listening to the value prop passed to
TextFieldTextArea
will fix the problem. In the means of:The text was updated successfully, but these errors were encountered: