You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add <a-select mode="multiple"> into component, select multiple options. It renders close icon for selected options in input and checked icon in popover, but each icon just render once.
Only one selected options in <a-select> has remove icon.
What is expected?
All selected options should have remove icon after its label whether ssr or not.(Works fine in normally command vite)
What is actually happening?
Only one selected options in <a-select> has remove icon.
I thought this may be a bug of vite-ssr, so I have also tested in vite-plugin-ssr(reproduction link), problems still exist, so I think this may be a vite's bug.
vite v2.9.12 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
-- SSR mode ready in 3313ms.
vite-ssr doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
After I tried with different vite ssr middlewares, and fire an issue in ant-design-vue. I had found components in ant-design-vue render icons from @ant-design/icons-vue, it uses export { default } from 'path/to/icon.svg', the author of antdv replied this problem was caused by vite does not support export { default }.
→ Component in icon slot will not render reliably
However if the slot is something simple like a native HTML Element (for example <button>test</button>) it works.
Somehow vite will not render the HTML content of any component in this slot.
Oddly enough the component itself will be attached correctly according to Vue.js devtools.
Without SSR it works fine. Even the SSR output by vite is also correct.
The problem occurs in client browser afterwards.
Describe the bug
Steps to reproduce
<a-select mode="multiple">
into component, select multiple options. It renders close icon for selected options in input and checked icon in popover, but each icon just render once.<a-select>
has remove icon.What is expected?
All selected options should have remove icon after its label whether ssr or not.(Works fine in normally command
vite
)What is actually happening?
Only one selected options in
<a-select>
has remove icon.I thought this may be a bug of vite-ssr, so I have also tested in vite-plugin-ssr(reproduction link), problems still exist, so I think this may be a vite's bug.
Reproduction
https://stackblitz.com/edit/vitejs-vite-evglmf?file=src%2FApp.vue
System Info
Used Package Manager
npm
Logs
Click to expand!
Sorry for my English.
Validations
The text was updated successfully, but these errors were encountered: