From 32891be320c642fc25f91315f53dac7278d3fcfd Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 11 Dec 2019 16:40:39 +0100 Subject: [PATCH] Fix export and username prompt --- www/common/common-interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 72438fec2..68db40c81 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -461,7 +461,7 @@ define([ opt = opt || {}; var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput(); - var input = opt.password ? $(inputBlock).find('input')[0] : inputBlock; + var input = $(inputBlock).is('input') ? inputBlock : $(inputBlock).find('input')[0]; input.value = typeof(def) === 'string'? def: ''; var message;