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

Toasts do not appear #34

Closed
4 tasks done
caffeine-addictt opened this issue Nov 5, 2023 · 1 comment · Fixed by #35
Closed
4 tasks done

Toasts do not appear #34

caffeine-addictt opened this issue Nov 5, 2023 · 1 comment · Fixed by #35
Assignees

Comments

@caffeine-addictt
Copy link
Owner

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

When flask.flash is run at runtime, toasts should appear at the top-right hand corner of the page

Current Behavior

When flask.flash is run at runtime, toasts do not appear

@caffeine-addictt caffeine-addictt added type: bug Something isn't working priority: high labels Nov 5, 2023
@caffeine-addictt caffeine-addictt self-assigned this Nov 5, 2023
@caffeine-addictt
Copy link
Owner Author

Identified this bug to be the result of how scripts are loaded in src/templates/layout.html which causes jQuery to render after toasts render.

src/templates/components/toast.html

<!-- Javascript to handle toasts -->
<script>
  $(document).ready(() => {
    $('.toast').toast('show');
  });
</script>

This causes the script showing toasts to not run

Repository owner locked as resolved and limited conversation to collaborators Nov 5, 2023
@caffeine-addictt caffeine-addictt added this to the Base Project Setup milestone Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant