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
The undelegateModalEvents function is not called when a modal is canceled or closed for another reason. It looks as though the modal checks if we have a viewContainer, here
, except @regionEnabled does not seem to be set anywhere else in the code. That means destroy will always be called on a successful triggerCancel and triggerSubmit.
So, I think we should call undelegateModalEvents every time destroy is called in order to always remove events from the inactive modal and return the modal state back to inactive (@active = false called only in the undelegateModelEvents function here
The
undelegateModalEvents
function is not called when a modal is canceled or closed for another reason. It looks as though the modal checks if we have aviewContainer
, herebackbone.modal/src/backbone.modal.coffee
Line 249 in daed180
backbone.modal/src/backbone.modal.coffee
Line 260 in daed180
@regionEnabled
does not seem to be set anywhere else in the code. That meansdestroy
will always be called on a successfultriggerCancel
andtriggerSubmit
.So, I think we should call
undelegateModalEvents
every timedestroy
is called in order to always remove events from the inactive modal and return the modal state back to inactive (@active = false
called only in theundelegateModelEvents
function herebackbone.modal/src/backbone.modal.coffee
Line 119 in daed180
The text was updated successfully, but these errors were encountered: