mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix error when trying to hide icon. (Failed to execute removeChild on Node: The node to be removed is not a child of this node.)
This commit is contained in:
parent
f9a088882d
commit
75a77a4bc5
2 changed files with 2 additions and 2 deletions
|
|
@ -224,7 +224,7 @@ kpxcPasswordDialog.trigger = async function() {
|
|||
|
||||
kpxcPasswordDialog.showDialog = function(field, icon) {
|
||||
if (!kpxcFields.isVisible(field)) {
|
||||
document.body.removeChild(icon);
|
||||
icon.parentNode.removeChild(icon);
|
||||
field.removeAttribute('kpxc-password-field');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ UsernameFieldIcon.prototype.createIcon = function(field) {
|
|||
|
||||
const iconClicked = async function(field, icon) {
|
||||
if (!kpxcFields.isVisible(field)) {
|
||||
document.body.removeChild(icon);
|
||||
icon.parentNode.removeChild(icon);
|
||||
field.removeAttribute('kpxc-username-field');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue