ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

[Select Component]Update v-model:value to "undefined" in @select Event Doesn't bind to html

Open TwinkleSevenStream opened this issue 3 years ago • 0 comments
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

Edit on CodeSandbox

Steps to reproduce

  1. use a-select component
  2. v-model:value bind a ref variable
  3. bind @select event to function
  4. modify the v-model:value variable to "undefined" in @select event function
  5. 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)

TwinkleSevenStream avatar Sep 16 '22 06:09 TwinkleSevenStream