You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I was able to figure out was that _setConfirmationListeners() is executed twice when a button is clicked, so the function for managing singletons is also called twice.
The first time the element of the clicked button is passed as this to the function, but the second time the element from the rootSelector is passed as this and then popup is closed.
I didn't dig any deeper than this and don't know if this is will help you in any way (is this expected behaviour?) but I'm just sharing what I know.
I'm using Bootstrap v4.3.1 and jQuery v3.4.1.
The text was updated successfully, but these errors were encountered:
Even though the project is unmaintained I prefer keeping actual bugs open. It will be easier for a future maintainer, or for me, to know what has to be done.
I am having problems when setting
singleton
totrue
. When I click on a button the confirmation popup shows but then immediately closes.My code:
What I was able to figure out was that
_setConfirmationListeners()
is executed twice when a button is clicked, so the function for managing singletons is also called twice.The first time the element of the clicked button is passed as
this
to the function, but the second time the element from therootSelector
is passed asthis
and then popup is closed.I didn't dig any deeper than this and don't know if this is will help you in any way (is this expected behaviour?) but I'm just sharing what I know.
I'm using Bootstrap
v4.3.1
and jQueryv3.4.1
.The text was updated successfully, but these errors were encountered: