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

[Vue] Icons render problem when using with vite-ssr #531

Closed
wheeljs opened this issue Jun 23, 2022 · 0 comments
Closed

[Vue] Icons render problem when using with vite-ssr #531

wheeljs opened this issue Jun 23, 2022 · 0 comments

Comments

@wheeljs
Copy link

wheeljs commented Jun 23, 2022

Hi, thanks for your great libraries about Antd.

I have a problem with using [email protected], @ant-design/[email protected] with vite-ssr. I found all icons usage from ant-design-vue like <a-select> just render icon once. E.g. <a-select> with multiple mode, only one remove icon and checked icon was rendered when I selected multiple options.

Reproduction link

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

Environment

macOS Monterey version 12.4, Google Chrome Version 102.0.5005.115 (Official Build) (x86_64), [email protected], [email protected], @ant-design/[email protected]

Steps to reproduce

  1. Setup a vite with ssr project by 'vite-ssr' module.
  2. Add <a-select mode="multiple"> into component, select multiple options.
  3. Only one selected options in <a-select> has remove icon, checked icon in select options list also have this problem.

What is expected?

All selected options should have remove icon after its label.

What is actually happening?

Only one selected options in <a-select> has remove icon.


Withour SSR(Works) reproduction link: https://stackblitz.com/edit/vitejs-vite-c6xqfq?file=src%2FApp.vue

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants