Vue-material: [mdInput] Fast typing in input is laggy

Created on 21 Feb 2017  路  9Comments  路  Source: vuematerial/vue-material

Hey, if i type in input faster its laggy, i check what function doing it and most validateProp and updateFromParent, How to solve this i need something special on v-models or?

2017-02-21_14-27-08

bug

Most helpful comment

@marcosmoura I found with some local testing that commenting out
https://github.com/marcosmoura/vue-material/blob/master/src/components/mdInputContainer/common.js#L61-L62
seemed to completely remove the input lag, even if I have 1000 elements in the select dropdown

events_issue

It seems those events are necessary to let the components work with v-model, but are there some side-effects perhaps?

All 9 comments

I found some weird things, this lags for inputs its doing select input

I will investigate this issue. This is quite strange.

@marcosmoura i found if many options are rendered for select then starts laggy

@marcosmoura I created example: http://codepen.io/Samuellsk/pen/ygmQdx, if you have good pc its less laggy but on worse pc is laggy

@marcosmoura I found with some local testing that commenting out
https://github.com/marcosmoura/vue-material/blob/master/src/components/mdInputContainer/common.js#L61-L62
seemed to completely remove the input lag, even if I have 1000 elements in the select dropdown

events_issue

It seems those events are necessary to let the components work with v-model, but are there some side-effects perhaps?

@koriroys i think without input emit v-model doesnt work

@Samuell1 is right. Without those events, the v-model is useless

@marcosmoura @pablohpsilva @koriroys maybe change select to doesnt not use native select and options but use ul, li for rendering list and selected value will be saved to text input

@Samuell1 @koriroys @marcosmoura I think I fixed the issue. Check it out #674

Was this page helpful?
0 / 5 - 0 ratings