-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Domino9697/vue
#1Labels
Description
Version
2.5.11 (and earlier versions)
Reproduction link
https://jsfiddle.net/xb4172g8/
Steps to reproduce
- Open console and observe while typing something into input fields
- Enter some text into name field -> Vue re-renders all three Textfield components
- In line 21 replace
{ ...this.$listeners }
with an empty object - Once again enter some text into any field -> Vue re-renders only updated Textfield
What is expected?
Vue should re-render only the component whose props has changed.
What is actually happening?
Using $listeners
in component's render function causes the component to be rendered whenever its parent is updated even though his props hasn't changed.
AngelBeast12, karmiy, Mikilll94, houfeng0923, martinmckenna and 3 morebrainkim and YUN-RU-TSENG