Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TextareaElement lags on typing #440

@homli-admin

Description

@homli-admin

Environment

Vueform: ^1.10.6

Browser: Chrome (latest)

Vue version: 3.3.9

Vite version: 5.0.2

Reproduction

Use Vueform version ^1.10.6

Create a form with a large number of fields (especially dynamic or conditional ones)

Include at least one TextareaElement

Open the form in Chrome

Start typing in the textarea

Observe lag and performance warning in the console

Describe the bug

I’m using Vueform version ^1.10.6, and I'm noticing occasional input lag in the TextareaElement component. Sometimes, when typing into a textarea, especially in forms with many fields, there is a noticeable delay in input response. Chrome DevTools also displays a warning: 'input' handler took 756ms. If I create a custom element with a native html textarea there is no lag.

Possible Cause

Synchronous field-level validations may be triggered too frequently (e.g., on every keystroke), and the cumulative cost in large forms could be high.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions