Card: Updates firing too many times when InputText is inside of card #5205
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
I have a website, which contains table with around 1000 rows and around 15 columns. I also put InputText on top of table, to enable search. The problem is, that for every character inputed in search field, function for determining class is called for every cell. This means for every character inputed, testFunc is called 15 000 times.
Problem is solved if I put InputText outside of Card.
On Stackblits, I had to increase number of rows to 1000, to see bad performance. On my local machine, 500 was enough.
Not working:
explorer_aRudMxqX8z.mp4
Working:
firefox_YVVvNkGRIq.mp4
Reproducer
https://stackblitz.com/~/edit/primevue-create-vue-issue-template-p6xwch?view=editor
PrimeVue version
3.47.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Firefox 122.0 (64-bit), Google Chrome 121.0.6167.140 (Official Build) (64-bit)
Steps to reproduce the behavior
Expected behavior
Typing in InputText should not trigger updates of all elements inside of Card.
The text was updated successfully, but these errors were encountered: