mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
call controlUtils.disposeControls in popup.js (#5537)
#5112 adds the necessary cleanup for the formwidget but 'dispose-control' listener is not triggered when a popup is closed
This commit is contained in:
parent
ea4ca1802b
commit
ef271e1940
@ -145,6 +145,7 @@
|
||||
|
||||
this.$modal.on('hidden.bs.modal', function(){
|
||||
self.triggerEvent('hidden.oc.popup')
|
||||
$.oc.foundation.controlUtils.disposeControls(self.$container.get(0))
|
||||
self.$container.remove()
|
||||
$(document.body).removeClass('modal-open')
|
||||
self.dispose()
|
||||
|
Loading…
x
Reference in New Issue
Block a user