amplitude / Amplitude-TypeScript

TypeScript Amplitude Analytics SDK
https://amplitude.github.io/Amplitude-TypeScript/
MIT License
135 stars 39 forks source link

Amplitude analytics-browser 2.11.0 with autocapture: true freezes on click on dropdown menu #861

Closed mjsilva closed 2 months ago

mjsilva commented 2 months ago

Expected Behavior

Not freeze and capture the interaction

Current Behavior

We recently upgraded from:

    "@amplitude/analytics-browser": "^2.9.3",
    "@amplitude/plugin-session-replay-browser": "^1.6.5",

to

    "@amplitude/analytics-browser": "^2.11.0",
    "@amplitude/plugin-session-replay-browser": "^1.6.21",

and enabled autocapture. But it broken one of our dropdown menu select and had to revert back to previous version. Essentially when a user clicked on a dropdown menu it would just freeze any interaction like JS thread was in an infinite loop. Does anyone else had this problem?

Possible Solution

downgrade to ^2.9.3

Steps to Reproduce

I haven't tried to reproduce it on a clean repo with just amplitude enabled as that's a lot of work. Just trying to understand if anyone else is having this issue. Can do further digging if needed.

Environment

izaaz commented 2 months ago

@mjsilva - A similar issue was fixed in 2.11.1. Can you please try that version of the SDK to see if it resolves your problem?