vuetifyjs / vuetifyjs/vuetify

[Bug Report][4.1.12] VTextarea auto-grow breaks native undo — Ctrl+Z undoes one character at a time

Open
#23,153 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C: VTextarea P: low T: bug
Dominant language
TypeScript
Stars
41k
Forks
7.1k
Avg merge
1d 21h
Merged PRs (30d)
11

Description

Environment

Vuetify Version: 4.1.12
Vue Version: 3.5.42
OS: Linux undefined (current)

Steps to reproduce
  1. Add a v-textarea anywhere
  2. Add auto-grow prop to the v-textarea
  3. Write any text into the v-textarea
  4. Hit Ctrl+z on the keyboard to perform a native undo
Expected Behavior

Hitting ctrl+z should undo groups of characters

Actual Behavior

Hitting ctrl+z only undoes a single character at a time

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

An issue since v2.5
When auto-grow is on a v-textarea, ctrl+z only undoes a single character at a time, not a group of characters like it does without the auto-grow prop or any basic html textarea input.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the v-textarea implementation and reproduce the issue using the linked Vuetify Playground example with auto-grow enabled. Compare Ctrl+Z behavior against a basic textarea and v-textarea without auto-grow; done means undo restores groups of characters as expected rather than one character at a time.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.