Merge pull request #2367 from keepassxreboot/fix/ignore_elements_with_animations

Ignore elements with animations when using dynamic input field detection
This commit is contained in:
Sami Vänttinen 2024-10-21 22:17:03 +03:00 committed by GitHub
commit 7e291a2404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,7 +115,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;
}