[Fixed] Textarea Component Unexpectedly Expanded on Startup

Hi,

I’ve recently encountered an unexpected behavior with the textarea component in my app. Upon starting the app, the textarea is already expanded to its full size, even though I haven’t typed anything into it. The component appears empty, but it’s expanded as if there’s content inside.

  1. No Recent Changes: I haven’t made any recent changes to the code or configuration of the app that could have triggered this behavior. This just started an hour ago or so.
  2. Persistent Across Versions: I’ve checked previous versions of the app, and this issue seems to be present in all of them.
  3. No Initial Value: I’ve ensured that the textarea doesn’t have any initial value set, including spaces, newlines, or other invisible characters.
  4. CSS/Styling: I’ve reviewed any custom CSS and styles applied to the app and the textarea component, but found nothing that could cause this.
  5. Backspace Fix: When I click on the textarea and press the backspace key, the component seems to correct itself and return to its expected size.

Is anyone else experiencing this issue?

edit: I’ve found that programmatically setting self.textarea.text = "" or toggling the visibility of the textarea with self.textarea.visible = False followed by self.textarea.visible = True also corrects the issue.

1 Like

I’m not experiencing this so far. However, Anvil staff :male_detective: :female_detective: have moved your post to Bug Reports. That’s a good sign that they’re on the case.

1 Like

Thanks @p.colbert
Yes - this was fixed quickly and we missed replying to the forum.

1 Like