diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 5f8379aa1..9fb29833a 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -582,11 +582,12 @@ RED.editor = (function() { // Add dummy fields to prevent 'Enter' submitting the form in some // cases, and also prevent browser auto-fill of password - // Add in reverse order as they are prepended... - $('').prependTo(dialogForm); - $('').prependTo(dialogForm); + // - the elements cannot be hidden otherwise Chrome will ignore them. + // - the elements need to have id's that imply password/username + $('
').prependTo(dialogForm); + $('').prependTo(dialogForm); dialogForm.on("submit", function(e) { e.preventDefault();}); - dialogForm.find('input').attr("autocomplete","disable"); + dialogForm.find('input').attr("autocomplete","off"); return dialogForm; }