[Dropdown] Recreating while opening transition leaks intent event handlers #653
Labels
lang/javascript
Anything involving JavaScript
type/bug
Any issue which is a bug or PR which fixes a bug
Milestone
Bug Report
Steps to reproduce
.dropdown()
immediately after.dropdown('show')
<a href="...">
links in the pageExpected result
The browser navigates to URL in the
href
attribute.Actual result
Nothing happens.
Looks like
test.hide
event handler has been added with the namespace used before recreating the instance, so new instance can't remove it. Then<a>
stops working because the handler callspreventDefault()
.Testcase
https://jsfiddle.net/6suLrem1/1/
Version
2.7.4
The text was updated successfully, but these errors were encountered: