Skip to content

Commit

Permalink
Ignore elements with animations when using dynamic input field detection
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Oct 20, 2024
1 parent 5d692ec commit cc9640c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keepassxc-browser/content/observer-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ kpxcObserverHelper.initObserver = async function() {
// Stores mutation style to an cache array
// If there's a single style mutation, it's safe to calculate it
kpxcObserverHelper.cacheStyle = function(mut, styleMutations, mutationCount) {
if (mut.attributeName !== 'style') {
// Do not cache elements with animations
if (mut?.attributeName !== 'style'
|| mut?.target?.style?.transform !== ''
|| mut?.target?.style?.transformStyle !== '') {
return;
}

Expand Down

0 comments on commit cc9640c

Please sign in to comment.