Skip to content

Commit 5bc4d3e

Browse files
docs: remove unnecessary brackets in sample (#11168)
In the Migration guide, there are in the sample some obsolete brackets which I removed, so when the developer is copying the sample he doesn't copy those brackets anymore <img width="649" alt="image" src="https://github.com/user-attachments/assets/91478ef0-1b72-41a1-b9cb-50c9d9c656e6" />
1 parent cd0f1eb commit 5bc4d3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/6-migration-guides/01-to-version-2.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,13 +2315,11 @@ toast.addEventListener("close", (event) => {
23152315
If you previously used the `show()` method:
23162316
```ts
23172317
toast.show();
2318-
});
23192318
```
23202319
Now, you must use the `open` property:
23212320

23222321
```ts
2323-
toast.open=true
2324-
});
2322+
toast.open=true;
23252323
```
23262324

23272325

0 commit comments

Comments
 (0)