Skip to content

Commit 7098502

Browse files
fix: unbing fullScreen click on hide
Co-authored-by: Navin Karkera <navin@opencraft.com>
1 parent 0665f32 commit 7098502

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cms/static/js/views/modals/base_modal.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ define(['jquery', 'underscore', 'gettext', 'js/views/baseview'],
129129
} catch (e) {
130130
console.error(e);
131131
}
132+
const fullscreenButton = this.$('.fullscreen-button');
133+
if (fullscreenButton.length) {
134+
fullscreenButton.unbind('click');
135+
}
132136

133137
// Completely remove the modal from the DOM
134138
this.undelegateEvents();

0 commit comments

Comments
 (0)