lucide/packages/vue/tests
Sagar Gupta 4c663b9a32
fix(vue): support kebab-case icon-node prop on Icon component (#4512)
* fix(vue): support kebab-case icon-node prop on Icon component

The Icon component destructured `iconNode` camelCase-only while
`stroke-width`/`absolute-stroke-width` accept both cases, so the
idiomatic Vue usage `<Icon :icon-node="..." />` left iconNode undefined
and crashed with 'Cannot read properties of undefined (reading map)'
(#3485). Accept the kebab-case alias and guard the render path.

Closes #3485

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* chore(vue): apply prettier formatting to Icon.ts

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2026-07-09 14:11:20 +02:00
..
__snapshots__ feat(context-providers): Adding Context providers (#3315) 2026-01-02 09:47:29 +01:00
context.spec.ts feat(context-providers): Adding Context providers (#3315) 2026-01-02 09:47:29 +01:00
ContextWrapper.vue feat(context-providers): Adding Context providers (#3315) 2026-01-02 09:47:29 +01:00
Icon.spec.ts fix(vue): support kebab-case icon-node prop on Icon component (#4512) 2026-07-09 14:11:20 +02:00
lucide-vue.spec.ts fix(vue): clone slots before passing to icon (#4339) 2026-05-01 14:52:32 +02:00
setupVitest.js feat(@lucide/vue): Rename Vue package name to @lucide/vue (#3337) 2025-09-11 14:38:34 +02:00
testIconNodes.ts feat(@lucide/vue): Rename Vue package name to @lucide/vue (#3337) 2025-09-11 14:38:34 +02:00