mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #487 from keepassxreboot/prevent_onclick_override
Prevent onclick override
This commit is contained in:
commit
bd16eb6e1c
1 changed files with 2 additions and 2 deletions
|
|
@ -392,7 +392,7 @@ window.addEventListener('scroll', function(e) {
|
|||
});
|
||||
|
||||
// Closes the dialog when clicked outside of it)
|
||||
document.onclick = function(e) {
|
||||
document.addEventListener('click', function(e) {
|
||||
if (kpxcPassword.dialog && kpxcPassword.dialog.style.display === 'block') {
|
||||
const dialogEndX = kpxcPassword.dialog.offsetLeft + kpxcPassword.dialog.offsetWidth;
|
||||
const dialogEndY = kpxcPassword.dialog.offsetTop + kpxcPassword.dialog.offsetHeight;
|
||||
|
|
@ -403,4 +403,4 @@ document.onclick = function(e) {
|
|||
kpxcPassword.openDialog();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue