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:
Ryan Showers 2021-03-17 12:10:09 -06:00 committed by GitHub
parent ea4ca1802b
commit ef271e1940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()