Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/toast/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @script-development/fs-toast

## 0.1.1

### Patch Changes

- Fix ToastContainerComponent rendering a fragment instead of a single root element. Vue drops fallthrough attributes on fragment components, so positioning classes applied directly on `<component :is="ToastContainerComponent" />` were silently lost. The container now wraps toasts in a `<div>`, enabling proper attribute inheritance.
2 changes: 1 addition & 1 deletion packages/toast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@script-development/fs-toast",
"version": "0.1.0",
"version": "0.1.1",
"description": "Component-agnostic toast queue service for Vue 3 — FIFO management, you bring the component",
"license": "UNLICENSED",
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion packages/toast/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export const createToastService = <C extends Component>(
const ToastContainerComponent = defineComponent({
name: "ToastContainer",
render() {
return toasts.value.map((toast) => toast.node);
return h(
"div",
null,
toasts.value.map((toast) => toast.node),
);
},
});

Expand Down