Closed rviscomi closed 7 months ago
Ha! I had the exact same change lined up! Was just havign trouble reproducing to confirm it worked.
However you are a few versions behind on web-vitals. We're on 1.5.2 now not 1.4.2. Suggested changing in #169
Sure you're not confusing the library version with the extension version? 😁
Doh! I wondered why it didn't update automatically with dependabot!!!
Sorry!
Example of the new web-vitals version successfully falling back to the correct target selector, and the extension successfully falling back to the correct element reference. For context, the INP interaction here has a pointerdown entry as the canonical
eventEntry
which has a null target due to a browser bug. With these changes, we're able to correctly attribute the element receiving the interaction.