vite-ssr icon indicating copy to clipboard operation
vite-ssr copied to clipboard

Render mismatch with csr when using with ant-design-vue

Open wheeljs opened this issue 2 years ago • 0 comments

Hi, thanks for your great library to help me setup vite with ssr in my vite+vue@3 project. But when I review ui after setup, I found the <a-select mode="multiple"> with multiple selection but only one remove icon. I wrapped all client codes into <client-only>, but it doesn't work.

Step to reproduce

  1. Add <a-select mode="multiple"> into component, select multiple options.
  2. Only one selected options in <a-select> has remove icon.

What is expected?

All selected options should have remove icon after its label.

Minimal reproduction

With SSR: https://stackblitz.com/edit/vitejs-vite-evglmf?file=src%2FApp.vue

Without SSR: https://stackblitz.com/edit/vitejs-vite-c6xqfq?file=src%2FApp.vue

I have also fire this issue in ant-design-vue repo. Sorry for my English.

wheeljs avatar Jun 22 '22 03:06 wheeljs