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 开启多选(multiple)后 直接设置 v-model 值 再改变:options (场景:翻页) 未记录optionInfo 查看过源码 只有点击记录了 #3212

Open
1 task done
People-Sea opened this issue Jul 5, 2024 · 0 comments · May be fixed by #3213
Labels
💤 Inactive Inactive issues

Comments

@People-Sea
Copy link

People-Sea commented Jul 5, 2024

Basic Info

Extra info

https://codesandbox.io/p/sandbox/unruffled-ioana-7qzdyx?file=%2Fsrc%2FApp.vue%3A11%2C22

What is expected?

直接设置 v-model 也跟点击option组件一样 记录 optionInfo

Steps to reproduce

https://codesandbox.io/p/sandbox/unruffled-ioana-7qzdyx

@People-Sea People-Sea changed the title Select 开启多选(multiple)后 直接设置 v-model 值 再改变(场景:翻页) 未记录optionInfo 查看过源码 只有点击记录了 Select 开启多选(multiple)后 直接设置 v-model 值 再改变:options (场景:翻页) 未记录optionInfo 查看过源码 只有点击记录了 Jul 5, 2024
People-Sea added a commit to People-Sea/arco-design-vue that referenced this issue Jul 5, 2024
…dateSelectedOption

This change ensures that when setting a new value for a multiple selection
dropdown, any existing values are not duplicated. It achieves this by
checking the keys of the current selected options against the keys of the
newly provided values, only adding those that do not already exist.

Fixes arco-design#3212
People-Sea added a commit to People-Sea/arco-design-vue that referenced this issue Jul 5, 2024
…the options list, the view displayed incorrectly.

This fix that the selectOption is updated for newly added or newly set values without invoking updateSelectedOption repeatedly.

Fixes arco-design#3212
@github-actions github-actions bot added the 💤 Inactive Inactive issues label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 Inactive Inactive issues
Projects
None yet
1 participant