Nychthemeron/packages/library/tests
Matthew L McPeak 8c830438d5 fix: unwrap Fragment vnodes in Slot before cloning
<slot /> used as a passthrough outlet inside an SFC template (e.g.
DialogTrigger.vue's <Primitive as-child><slot /></Primitive>) resolves
through Vue's renderSlot() helper, which always wraps the forwarded
content in a Fragment vnode -- even when there's exactly one real
child. Slot was cloning that inert Fragment wrapper instead of the
real child, so attrs merged onto asChild-forwarded elements (data-slot,
aria-*, the click handler) silently vanished. Found via manual
Storybook verification: the Dialog trigger rendered but never opened
the dialog on click.

Unwrap single-child Fragments before merging/cloning, and add a
regression test through a real SFC fixture (a raw h()-based test
doesn't reproduce this, since it never goes through renderSlot()).
2026-07-13 18:37:50 -04:00
..
fixtures fix: unwrap Fragment vnodes in Slot before cloning 2026-07-13 18:37:50 -04:00
Alert.spec.ts feat: migrate Message to shadcn-vue Alert 2026-07-11 14:45:45 -04:00
Badge.spec.ts feat: migrate Tag to shadcn-vue Badge 2026-07-11 14:32:18 -04:00
Button.spec.ts feat: migrate Button from PrimeVue to shadcn-vue 2026-07-11 14:19:39 -04:00
Card.spec.ts feat: migrate Card to shadcn-vue compound API 2026-07-11 14:41:58 -04:00
Checkbox.spec.ts feat: migrate Checkbox and CheckboxGroup to shadcn-vue 2026-07-11 14:35:36 -04:00
CheckboxGroup.spec.ts feat: migrate Checkbox and CheckboxGroup to shadcn-vue 2026-07-11 14:35:36 -04:00
Dialog.spec.ts feat: migrate Dialog to shadcn-vue compound API 2026-07-11 14:57:06 -04:00
Input.spec.ts feat: migrate InputText to shadcn-vue Input 2026-07-11 14:22:14 -04:00
lib.spec.ts feat: migrate Dialog to shadcn-vue compound API 2026-07-11 14:57:06 -04:00
primitive.spec.ts fix: unwrap Fragment vnodes in Slot before cloning 2026-07-13 18:37:50 -04:00
RadioGroup.spec.ts feat: migrate RadioButton/RadioButtonGroup to shadcn-vue RadioGroup 2026-07-11 14:39:22 -04:00
Select.spec.ts feat: migrate Select to shadcn-vue compound API 2026-07-11 14:50:36 -04:00
Switch.spec.ts feat: migrate ToggleSwitch to shadcn-vue Switch 2026-07-11 14:28:51 -04:00
tailwind-tokens.spec.ts feat: wire up Tailwind v4 and shadcn-vue token mapping alongside PrimeVue 2026-07-11 14:15:37 -04:00
Textarea.spec.ts feat: migrate Textarea to shadcn-vue 2026-07-11 14:24:29 -04:00
use-dismissable-layer.spec.ts feat: add useDismissableLayer composable 2026-07-13 18:10:06 -04:00
use-focus-trap.spec.ts feat: add useFocusTrap composable 2026-07-13 18:09:18 -04:00
use-popover-position.spec.ts feat: add usePopoverPosition composable 2026-07-13 18:11:28 -04:00
use-roving-focus.spec.ts feat: add useRovingFocus composable 2026-07-13 18:10:46 -04:00