Page MenuHomePhabricator

[Improvement] A more flexible AutoHeightTextarea
Closed, ResolvedPublic

Description

As a follow up to T295048, we can improve the AutoHeightTextarea component in a couple of ways:

  • Adjust height both to a minimum and maximum. Currently it only sets height up to a maximum based on scrollHeight
  • Look into keeping the v-model logic out of the component so that it's more reusable (for example, possibly in PublishForm)

Related Objects

Event Timeline

SBisson edited projects, added Wikistories; removed Wikistories (MVP).
SBisson claimed this task.
SBisson subscribed.

The most important part here is done: Adjust height both to a minimum and maximum. Currently it only sets height up to a maximum based on scrollHeight

The other part about factoring out the v-model logic to make the component reusable is still valid but too minor and obvious to exist as a task. We'll do it naturally if we want to reuse this component in another context.