Skip to content

How to make textarea auto-resize with Alpine.js #3

@nelsonic

Description

@nelsonic

At present we have a <textarea> for capturing items in the MVP App:
image

If we input too much text into the <textarea> it starts to scroll which is a poor experience on mobile.

On desktop it kinda works to have a smaller box ...

image

But it would also be nice to tidy up the UX around the input area.

Todo

  • Research how to make the <textarea> resize automatically depending on the content.
  • Should not expand more than the height of the screen minus the keyboard.

Starting point: https://benborgers.com/posts/alpine-textarea-auto-resize + https://youtu.be/z7130uJ3H7w

Metadata

Metadata

Assignees

Labels

T2hTime Estimate 2 HoursdiscussShare your constructive thoughts on how to make progress with this issueenhancementNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!priority-1Highest priority issue. This is costing us money every minute that passes.researchResearch required; be specificspikeThe simplest possible experiment to explore potential solutions to a problemtechnicalA technical issue that requires understanding of the code, infrastructure or dependencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions