[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';
|
else if (input) input.type = 'password';
|
||||||
});
|
});
|
||||||
eyeBtn.title = t('coffres.show_before_save');
|
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);
|
build(initialType);
|
||||||
return {
|
return {
|
||||||
wrap,
|
wrap,
|
||||||
|
|||||||
Reference in New Issue
Block a user