Skip to content

Session Replay Mask Selectors Not Working #780

@MrDiamondDog

Description

@MrDiamondDog

I have the following Rybbit script on my Next.JS website:

<Script
    src="https://.../api/script.js"
    data-site-id="1"
    strategy="afterInteractive"
    data-session-replay="true"
    data-track-errors="true"
    data-replay-mask-text-selectors='[".a-hide"]'
/>

And this component that displays the user's name:

<p className="text-nowrap truncate hidden md:block text-sm a-hide">{session.user!.name!}</p>

Yet the username is still displayed in the replay. The mask specifies the class a-hide, and the tag has a-hide, so I'm not sure where I'm going wrong or if Rybbit isn't working correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions