浏览代码

check if info array is empty (#3442)

Artur Paikin 3 年之前
父节点
当前提交
cfaf2acf4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@uppy/dashboard/src/index.js

+ 1 - 1
packages/@uppy/dashboard/src/index.js

@@ -772,7 +772,7 @@ module.exports = class Dashboard extends UIPlugin {
     const isFocusInUppy = this.el.contains(document.activeElement)
     // When focus is lost on the page (== focus is on body for most browsers, or focus is null for IE11)
     const isFocusNowhere = document.activeElement === document.body || document.activeElement === null
-    const isInformerHidden = this.uppy.getState().info.isHidden
+    const isInformerHidden = this.uppy.getState().info.length === 0
     const isModal = !this.opts.inline
 
     if (