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

[Select]下拉项动态修改后未校验value是否合法 #526

Closed
scope9Ri opened this issue Mar 8, 2022 · 2 comments
Closed

[Select]下拉项动态修改后未校验value是否合法 #526

scope9Ri opened this issue Mar 8, 2022 · 2 comments

Comments

@scope9Ri
Copy link

scope9Ri commented Mar 8, 2022

重现链接

https://codesandbox.io/s/selectde-options-slotgai-bian-hou-xuan-xiang-bu-bian-forked-hyk5ji?file=/src/demo.vue:87-93

重现步骤

先选中某一项,然后动态修改options

期望结果

当下拉项动态更新时,应根据新下拉数据校验value是否合法,若不合法应重置value为null

实际结果

当下拉项动态更新时,未根据新下拉数据校验value是否合法

Environment Info
相关版本 0.37.0-alpha.2
框架版本 / 基础库版本 Vue2
系统、浏览器 MacOs/Chrome97
Node版本
@chaishi
Copy link
Collaborator

chaishi commented Mar 8, 2022

单就 select 组件来说,组件不做任何校验功能,也不因为 value 重置为 null 抛出 change 事件

@xiaosansiji
Copy link
Collaborator

已在 0.37.0 版本中修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants