Skip to content

Fix: Ensure ufAlerts is initialized in ufForm _defaultError method#3

Merged
lcharette merged 2 commits intouserfrosting:5.1from
vinc10:fix-ufalerts-initialization
Nov 30, 2024
Merged

Fix: Ensure ufAlerts is initialized in ufForm _defaultError method#3
lcharette merged 2 commits intouserfrosting:5.1from
vinc10:fix-ufalerts-initialization

Conversation

@vinc10
Copy link
Copy Markdown
Contributor

@vinc10 vinc10 commented Nov 18, 2024

In uf-form.js:

  • Added a check to ensure msgTarget has ufAlerts initialized.

This fixes UF alerts not showing up in forms in my application. Other people had this issue too, judging from the support chat.

My aim with this fix is to increase alert reliability in Userfrosting.

In uf-form.js: Added a check to ensure `msgTarget` has `ufAlerts` initialized.

This fixes UF alerts not showing up in forms in my application.
Removed unnecessary code
@lcharette lcharette merged commit 9b416b9 into userfrosting:5.1 Nov 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants