mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Remove icon input field from the internal list when removing the icon
This commit is contained in:
parent
6447e32fe6
commit
b62523b756
2 changed files with 8 additions and 0 deletions
|
|
@ -235,6 +235,8 @@ kpxcObserverHelper.handleObserverAdd = async function(target) {
|
|||
|
||||
kpxc.prepareCredentials();
|
||||
}
|
||||
|
||||
kpxcIcons.deleteHiddenIcons();
|
||||
};
|
||||
|
||||
// Removes monitored elements
|
||||
|
|
|
|||
|
|
@ -167,6 +167,12 @@ kpxcUI.deleteHiddenIcons = function(iconList, attr) {
|
|||
icon.removeIcon(attr);
|
||||
iconList.splice(index, 1);
|
||||
deletedIcons.push(icon.inputField);
|
||||
|
||||
// Delete the input field from detected fields so the icon can be detected again
|
||||
const inputFieldIndex = kpxc.inputs.indexOf(icon.inputField);
|
||||
if (inputFieldIndex >= 0) {
|
||||
kpxc.inputs.splice(inputFieldIndex, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue