SelectItem removed its entry from the shared itemLabels map on unmount, which fires for every item when the dropdown closes -- including the item that was just selected. That wiped the trigger's display label right after selecting (and after Escape/close in general). Labels only need to be learned once and can safely persist, matching the documented behavior in tests/Select.spec.ts. Found via manual Storybook verification. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| components.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||