Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Multiline toast flickers and then disappears #85

Open
AbdullahAhmadAAK opened this issue Nov 13, 2024 · 1 comment
Open

Bug: Multiline toast flickers and then disappears #85

AbdullahAhmadAAK opened this issue Nov 13, 2024 · 1 comment

Comments

@AbdullahAhmadAAK
Copy link

The toasts I get appear for only a split second, then disappear.

This is my code below:

	const msg1 =
		'After approval of the delivery, the following materials will be released: \n\n- Editable files (show this one if applicable, because videos do not have an editable file)\n\n- High-quality files'
	const msg2 = `Keep in mind that you have until ${lastApprovalDate} to approve the delivery or request a revision. After this date, the order will be finalized and marked as complete.`

	toast(msg1, {
		icon: '🛈',
		duration: 2000
	})

	toast(msg2, {
		icon: '🛈',
		duration: 2000
	})

Any idea why this is not working the way it's supposed to? The example on the guide website shows that my code is correct, but still this issue is coming up.

This is what I'm trying to achieve:

image

This is what I get:

image

@AbdullahAhmadAAK
Copy link
Author

Hi guys, used another package which was more easily configurable. You can read all about my approach here:
https://medium.com/@abdullahaak06/tutorial-multiline-notifications-toasts-in-sveltekit-as-toast-package-e5fe367efa09

Would encourage this repo's owners to fix this issue as well while they're at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant