You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I found out that autogrow='true' creates a huge lag on typing, probably caused by the watcher (in the src/composables/elements/useAutogrow.js) of the element value
I had this too, but for builder.
When I ran it Vueform Builder in iFrame completely isolated it works significantly faster.
BTW I have not found the real issue but all followed to autosize lib
Uh oh!
There was an error while loading. Please reload this page.
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.
The text was updated successfully, but these errors were encountered: