mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1512 from stefansundin/fix-minor-bugs
Fix removing icon from parent/document
This commit is contained in:
commit
2a78057eb5
3 changed files with 3 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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
margin: .2em 0 .2em 0;
|
||||
padding: .4em .2em .4em .8em;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.kpxc-pwgen-password-row {
|
||||
|
|
|
|||
Loading…
Reference in a new issue