@cedx/base 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ReadMe.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Belin.io Base
2
- ![.NET](https://badgen.net/badge/.net/%3E%3D9.0/green) ![Version](https://badgen.net/badge/project/v0.15.0/blue) ![Licence](https://badgen.net/badge/licence/MIT/blue)
2
+ ![.NET](https://badgen.net/badge/.net/%3E%3D9.0/green) ![Version](https://badgen.net/badge/project/v0.15.1/blue) ![Licence](https://badgen.net/badge/licence/MIT/blue)
3
3
 
4
4
  Base library by [Cédric Belin](https://belin.io), full stack developer,
5
5
  implemented in [C#](https://learn.microsoft.com/en-us/dotnet/csharp) and [TypeScript](https://www.typescriptlang.org).
@@ -123,7 +123,7 @@ export class Toaster extends HTMLElement {
123
123
  show(toast) {
124
124
  const item = document.createElement("toaster-item");
125
125
  item.addEventListener("hidden.bs.toast", () => item.remove());
126
- item.appendChild(this.#toastTemplate.cloneNode(true).firstElementChild);
126
+ item.appendChild(this.#toastTemplate.cloneNode(true).querySelector(".toast"));
127
127
  item.animation = toast.animation ?? this.animation;
128
128
  item.autoHide = toast.autoHide ?? this.autoHide;
129
129
  item.caption = toast.caption;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "name": "@cedx/base",
8
8
  "repository": "cedx/base",
9
9
  "type": "module",
10
- "version": "0.15.0",
10
+ "version": "0.15.1",
11
11
  "devDependencies": {
12
12
  "@playwright/browser-chromium": "^1.55.0",
13
13
  "@types/bootstrap": "^5.2.10",
@@ -178,7 +178,7 @@ export class Toaster extends HTMLElement {
178
178
  show(toast: IToast): void {
179
179
  const item = document.createElement("toaster-item");
180
180
  item.addEventListener("hidden.bs.toast", () => item.remove());
181
- item.appendChild((this.#toastTemplate.cloneNode(true) as DocumentFragment).firstElementChild!);
181
+ item.appendChild((this.#toastTemplate.cloneNode(true) as DocumentFragment).querySelector(".toast")!);
182
182
 
183
183
  item.animation = toast.animation ?? this.animation;
184
184
  item.autoHide = toast.autoHide ?? this.autoHide;