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

Fix JavaScript error caused by new ui.notify #3457

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Fix JavaScript error caused by new ui.notify #3457

merged 3 commits into from
Aug 8, 2024

Conversation

falkoschindler
Copy link
Contributor

This PR solves the JavaScript error and memory leak reported in #3454 when using ui.notify, which creates a ui.notification elements since PR #3121.

As it turned out, there is an important difference between ui.notify and ui.notification which is why this PR reverts ui.notify back to calling a Quasar function instead of creating an element: ui.notify allows grouping of multiple identical notifications, while ui.notification creates new popups each time. Therefore it is impractical to replace one with another, causing errors and memory leaks.

Besides reverting ui.notify, this PR introduces a new UserNotify class to simulate notifications for user tests. It doesn't simulate durations or dismiss buttons - the notifications simply remain "visible" -, but that should be ok for now and can be extended later.

@falkoschindler falkoschindler added the bug Something isn't working label Aug 8, 2024
@falkoschindler falkoschindler added this to the 1.4.35 milestone Aug 8, 2024
@falkoschindler falkoschindler linked an issue Aug 8, 2024 that may be closed by this pull request
@rodja rodja merged commit fca2b55 into main Aug 8, 2024
7 checks passed
@rodja rodja deleted the notify branch August 8, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JavaScript error when using ui.notify
2 participants