Browse Source

Add namespace control on show trigger to avoid interaction with other show triggers . (#1672)

Co-authored-by: Jean Pilliez <[email protected]>
Kutera 4 years ago
parent
commit
5c201e9dc3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/fileinput.js

+ 1 - 0
js/fileinput.js

@@ -2800,6 +2800,7 @@
                 };
             };
             $modal.on(event + '.bs.modal', function (e) {
+                if (e.namespace!=='bs.modal') return;
                 var $btnFull = $modal.find('.btn-fullscreen'), $btnBord = $modal.find('.btn-borderless');
                 if ($modal.data('fileinputPluginId') === self.$element.attr('id')) {
                     self._raise('filezoom' + event, getParams(e));