mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Avoid adding extra divs to edit form to avoid size miscalculation
This commit is contained in:
parent
d09ee6611f
commit
cc5fdd9844
@ -584,8 +584,8 @@ RED.editor = (function() {
|
|||||||
// cases, and also prevent browser auto-fill of password
|
// cases, and also prevent browser auto-fill of password
|
||||||
// - the elements cannot be hidden otherwise Chrome will ignore them.
|
// - the elements cannot be hidden otherwise Chrome will ignore them.
|
||||||
// - the elements need to have id's that imply password/username
|
// - the elements need to have id's that imply password/username
|
||||||
$('<div style="position: absolute; top: -2000px;"><input id="red-ui-trap-password" type="password"/></div>').prependTo(dialogForm);
|
$('<span style="position: absolute; top: -2000px;"><input id="red-ui-trap-password" type="password"/></span>').prependTo(dialogForm);
|
||||||
$('<div style="position: absolute; top: -2000px;"><input id="red-ui-trap-username" type="text"/></div>').prependTo(dialogForm);
|
$('<span style="position: absolute; top: -2000px;"><input id="red-ui-trap-username" type="text"/></span>').prependTo(dialogForm);
|
||||||
dialogForm.on("submit", function(e) { e.preventDefault();});
|
dialogForm.on("submit", function(e) { e.preventDefault();});
|
||||||
dialogForm.find('input').attr("autocomplete","off");
|
dialogForm.find('input').attr("autocomplete","off");
|
||||||
return dialogForm;
|
return dialogForm;
|
||||||
|
Loading…
Reference in New Issue
Block a user