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(nag): fetch missing event on manual dismiss call #2997

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Feb 10, 2024

Description

When the dismiss function is called manually via behavior .nag('dismiss') rather than being called inside an event (like when clicking on the close icon) a JS console error occured.

Testcase

  • Watch console
  • Click the button

Broken

Uncaught TypeError: Cannot read properties of undefined (reading 'stopImmediatePropagation')
https://jsfiddle.net/lubber/ofpc3du0/1/

Fixed

All fine
https://jsfiddle.net/lubber/ofpc3du0/2/

Closes

#2996

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug state/awaiting-reviews Pull requests which are waiting for reviews javascript Pull requests that update Javascript code labels Feb 10, 2024
@lubber-de lubber-de added this to the 2.9.4 milestone Feb 10, 2024
@lubber-de lubber-de merged commit 3f884b1 into fomantic:develop Feb 11, 2024
9 checks passed
@lubber-de lubber-de deleted the manualNagDismiss branch February 11, 2024 12:03
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant