Skip to content
Snippets Groups Projects
Commit 22d35eec authored by Chris Lawton's avatar Chris Lawton
Browse files

close any open select2 dropdowns when inside a modal

parent c0f5deb9
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,12 @@ import '@fancyapps/fancybox'; ...@@ -53,6 +53,12 @@ import '@fancyapps/fancybox';
} }
}); });
// Close any open select2 dropdowns when inside a modal
$('.modal').click((e) => {
if(e.target.classList.contains('select2-selection__rendered')) return;
$('.django-select2-checkboxes').select2('close');
});
// Open the activity feed // Open the activity feed
$('.js-open-feed').click((e) => { $('.js-open-feed').click((e) => {
e.preventDefault(); e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment