From cfaf2acf4ece103c4722748e4d5fe3a4909a662b Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Thu, 20 Jan 2022 15:14:11 +0000 Subject: [PATCH] check if info array is empty (#3442) --- packages/@uppy/dashboard/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@uppy/dashboard/src/index.js b/packages/@uppy/dashboard/src/index.js index 361a352bb..11c38849a 100644 --- a/packages/@uppy/dashboard/src/index.js +++ b/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 (