Explorar o código

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

Co-authored-by: Jean Pilliez <[email protected]>
Kutera %!s(int64=4) %!d(string=hai) anos
pai
achega
5c201e9dc3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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));