Element UI version
2.9.1
OS/Browsers version
macos10.15.3 / chrome 80.0.3987.149
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/kdouans2/
Steps to reproduce
打开重现链接,接着打开控制台发现有两个输出"input change"
What is Expected?
没有任何输出,也就是说初始化slider组件不要触发input或者change事件。
What is actually happening?
有两个输出"input change",可以发现初始化时就触发了两次。
3条答案
按热度按时间sxissh061#
Translation of this issue:
Element UI version
2.9.1
OS/Browsers version
macos10.15.3 / chrome 80.0.3987.149
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/kdouans2/
Steps to reproduce
Open the replay link, and then open the console to find that there are two output "input changes"
What is Expected?
There is no output, that is, initializing the slider component does not trigger input or change events.
What is actually happening?
There are two output "input changes" that you can see are triggered twice during initialization.
o75abkj42#
现在可以自己封装一层,如果数据一样,就不发送input事件。
Now I can encapsulate one layer by myself. If the data is the same, I will not send the input event.
ohtdti5x3#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.