diff options
author | Sami Vänttinen <sami.vanttinen@protonmail.com> | 2022-07-10 09:49:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 09:49:11 +0300 |
commit | 2298734b2063cfa50843e0ff9f57fbc0fc759443 (patch) | |
tree | f787b662c5c3bd36de126bc3a792135458c6aa8e | |
parent | a2321b2424c7f7bc78172b9ec1ae53826b27da23 (diff) | |
parent | 7190573aaa617ac59b15c1fdc91dd7c27a3f1db6 (diff) |
Merge pull request #1677 from keepassxreboot/fix/update_icon_position_on_transitionend
Fix icon position at transitionend event
-rw-r--r-- | keepassxc-browser/content/ui.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js index d3d06e1..0f09f2d 100644 --- a/keepassxc-browser/content/ui.js +++ b/keepassxc-browser/content/ui.js @@ -105,6 +105,12 @@ kpxcUI.monitorIconPosition = function(iconClass) { window.addEventListener('scroll', function(e) { kpxcUI.updateIconPosition(iconClass); }); + + window.addEventListener('transitionend', function(e) { + if (e.target && (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA')) { + kpxcUI.updateIconPosition(iconClass); + } + }); }; kpxcUI.updateIconPosition = function(iconClass) { |