The nag('dismiss') function throws error. ('stopImmediatePropagation')
Steps to reproduce
Create an HTML
User
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Add a few Nags with Javascript
await addNag("Headline", "This iis the Nag Text <br> with linebreak","error");
await addNag("Headline", "This iis the Nag Text <br> with linebreak");
try to dismiss the error nags
$('.ui.nag.error').nag('dismiss');
Expected result
The nag disappears without a JavaScript error
Actual result
semantic.min.js:11 Uncaught TypeError: Cannot read properties of undefined (reading 'stopImmediatePropagation')
at HTMLDivElement.dismiss (semantic.min.js:11:205425)
at Object.invoke (semantic.min.js:11:209606)
at HTMLDivElement. (semantic.min.js:11:209735)
at Function.each (jquery.min.js:2:3129)
at ce.fn.init.each (jquery.min.js:2:1594)
at C.fn.nag (semantic.min.js:11:204074)
at :1:20
Bug Report
The nag('dismiss') function throws error. ('stopImmediatePropagation')
Steps to reproduce
Create an HTML
User
Lorem IpsumLorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Add a few Nags with Javascript
$('.ui.nag.error').nag('dismiss');
Expected result
The nag disappears without a JavaScript error
Actual result
semantic.min.js:11 Uncaught TypeError: Cannot read properties of undefined (reading 'stopImmediatePropagation') at HTMLDivElement.dismiss (semantic.min.js:11:205425) at Object.invoke (semantic.min.js:11:209606) at HTMLDivElement. (semantic.min.js:11:209735)
at Function.each (jquery.min.js:2:3129)
at ce.fn.init.each (jquery.min.js:2:1594)
at C.fn.nag (semantic.min.js:11:204074)
at :1:20
Version
2.9.3