Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: setting maskAllInputs resets select to the first option in player #1303

Open
1 task done
ababik opened this issue Sep 11, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ababik
Copy link
Contributor

ababik commented Sep 11, 2023

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

2.0.0-alpha.11

Expected Behavior

Replayer respects the selected option.

Actual Behavior

The selected option is ignored and the first item in the list is displayed.

Steps to Reproduce

  1. Define a <select> where selected option is not the first item in the list.
<select>
    <option>1</option>
    <option selected>2</option>
    <option>3</option>
</select>
  1. Enable maskAllInputs.
rrwebRecord({
    ...
    maskAllInputs: true
})
  1. Record events. Option 2 is selected when original page is loaded.
  2. Play events in replayer. Option 1 is selected in the video.

Testcase Gist URL

No response

Additional Information

No response

@ababik ababik added the bug Something isn't working label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant