Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Date-picker can`t listen change event #18613

Open
Kunoky opened this issue Jan 6, 2020 · 9 comments
Open

[Bug Report] Date-picker can`t listen change event #18613

Kunoky opened this issue Jan 6, 2020 · 9 comments
Labels

Comments

@Kunoky
Copy link

Kunoky commented Jan 6, 2020

Element UI version

2.9.2

OS/Browsers version

Mac , chrom

Vue version

2.5.17

Reproduction Link

https://codepen.io/kunoky/pen/rNapmEz?editors=1111
image

Steps to reproduce

change the value of date-picker

What is Expected?

trigger method handleChange and modify value

What is actually happening?

change event is invalid

@tenmihi
Copy link

tenmihi commented Feb 4, 2020

Your way of data binding is wrong in your reproduction.
If you use date-picker, you must use v-model attribute, not :value.

@alamhubb
Copy link

+1

@alamhubb
Copy link

您的数据绑定方式在您的复制中是错误的。
如果使用日期选择器,则必须使用v-model属性,而不是:value

如果这不算bug,那就是个很差劲的设计

@alamhubb
Copy link

把 change 改为 input 解决了此问题,官方文档上并没写支持@input 事件,文档有问题

@Kunoky
Copy link
Author

Kunoky commented Oct 30, 2020

把 change 改为 input 解决了此问题,官方文档上并没写支持@input 事件,文档有问题

Yes, that`s what I did

@Kunoky Kunoky closed this as completed Oct 30, 2020
@alamhubb
Copy link

把 change 改为 input 解决了此问题,官方文档上并没写支持@input 事件,文档有问题

Yes, that`s what I did

得把官方文档修改了,或者支持了@change 事件再关 bug 吧,要不然还会有人遇到此类问题的,能在官网写清楚或者支持支持的功能,干嘛非要让人来 github 上搜呢

@Kunoky
Copy link
Author

Kunoky commented Oct 30, 2020

把 change 改为 input 解决了此问题,官方文档上并没写支持@input 事件,文档有问题

Yes, that`s what I did

得把官方文档修改了,或者支持了@change 事件再关 bug 吧,要不然还会有人遇到此类问题的,能在官网写清楚或者支持支持的功能,干嘛非要让人来 github 上搜呢

那就让他们自己关吧,这事太久了,我自己都忘了,不知道新版本修复了没有

@Kunoky Kunoky reopened this Oct 30, 2020
@alamhubb
Copy link

把 change 改为 input 解决了此问题,官方文档上并没写支持@input 事件,文档有问题

Yes, that`s what I did

得把官方文档修改了,或者支持了@change 事件再关 bug 吧,要不然还会有人遇到此类问题的,能在官网写清楚或者支持支持的功能,干嘛非要让人来 github 上搜呢

那就让他们自己关吧,这事太久了,我自己都忘了,不知道新版本修复了没有

谢谢您的认真

@stale
Copy link

stale bot commented Apr 18, 2022

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.

@stale stale bot added the stale label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants