소스 검색

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

Co-authored-by: Jean Pilliez <[email protected]>
Kutera 4 년 전
부모
커밋
5c201e9dc3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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));