ViewUI
ViewUI copied to clipboard
[Bug Report]多选的 select 改变下拉选项数据会保留上次选中显示的值
Environment
[email protected] [email protected]
Reproduction link
https://run.iviewui.com/U3bSSEh3
Steps to reproduce
- 设置一个 select 为 multiple,
- 选择任意一个选项
- 更改 option 对应的数据源,eg: ['a', 'b'] => ['c', 'd']
- 然后在点击上次选中同位置的选项
- 选择后,select 显示的还是上次旧值,单 value 是改变的
What is expected?
选中的内容不显示旧值
What is actually happening?
选中的显示旧值
数据变更加个 key 就可以了,key=":data.toString()"放在 option里面