Ignore elements with animations when using dynamic input field detection

This commit is contained in:
varjolintu 2024-10-20 15:35:14 +03:00
parent 5d692ecc34
commit cc9640c66f

View file

@ -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;
}