[fix] Coffre Secrets : valeurField attache l'oeil a wrap avant insertBefore (NotFoundError bouton Nouveau secret)
This commit is contained in:
@@ -292,6 +292,9 @@ function valeurField(initialType) {
|
||||
else if (input) input.type = 'password';
|
||||
});
|
||||
eyeBtn.title = t('coffres.show_before_save');
|
||||
// L'oeil doit etre enfant de wrap AVANT le premier build : insertBefore(input, eyeBtn)
|
||||
// leve sinon NotFoundError et la modale ne s'ouvre jamais (bug bouton Nouveau secret).
|
||||
wrap.appendChild(eyeBtn);
|
||||
build(initialType);
|
||||
return {
|
||||
wrap,
|
||||
|
||||
Reference in New Issue
Block a user