Skip to content

Commit

Permalink
feat: Avoid to close tag drawer when click outside (#34740)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV authored and rayzhou-bit committed May 9, 2024
1 parent 4b5c803 commit 8708c65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cms/static/js/views/utils/tagging_drawer_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ function($) {
const drawer = document.querySelector("#manage-tags-drawer");
const drawerCover = document.querySelector(".drawer-cover");

// Add handler to close drawer when dark background is clicked
$(drawerCover).click(function() {
closeDrawer(drawer, drawerCover);
}.bind(this));

// Add event listen to close drawer when close button is clicked from within the Iframe
window.addEventListener("message", function (event) {
if (event.data === 'closeManageTagsDrawer') {
Expand Down

0 comments on commit 8708c65

Please sign in to comment.