ant-design-vue
ant-design-vue copied to clipboard
[Select Component]Update v-model:value to "undefined" in @select Event Doesn't bind to html
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.12
Environment
"ant-design-vue": "3.2.12", "vue": "3.2.39"
Reproduction link
Steps to reproduce
- use a-select component
- v-model:value bind a ref variable
- bind @select event to function
- modify the v-model:value variable to "undefined" in @select event function
- then the select component display is not as expected
What is expected?
display placeholder when v-model:value is "undefined"
What is actually happening?
the current value of v-model:value not bind to html
if modify after nextTick() will be work. by the way, it would be fine when I use native select element. (the native select element is also in the codesandbox link)