From cc9640c66fa9add735c87e2799e34f3e9c71a3c3 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 20 Oct 2024 15:35:14 +0300 Subject: [PATCH] Ignore elements with animations when using dynamic input field detection --- keepassxc-browser/content/observer-helper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keepassxc-browser/content/observer-helper.js b/keepassxc-browser/content/observer-helper.js index 6e1a1c5..313b4b7 100644 --- a/keepassxc-browser/content/observer-helper.js +++ b/keepassxc-browser/content/observer-helper.js @@ -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; }