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

fix(document): do not track value on HTMLSelectElement #989

Merged
merged 3 commits into from Jul 15, 2022
Merged

Conversation

ph-fritsche
Copy link
Member

What:

Limit tracking of setters/methods to HTMLInputElement and HTMLTextareaElement.

Why:

Closes #961

How:

Only apply interceptors to those elements leaving other elements with value property untouched.
We only use the setUI abstraction on HTMLInputElement and HTMLTextareaElement so we don't need the interceptors here.

Checklist:

  • Tests
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 15, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 195abad:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration

@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

Merging #989 (195abad) into main (c88865d) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #989   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           86        86           
  Lines         1838      1837    -1     
  Branches       678       678           
=========================================
- Hits          1838      1837    -1     
Impacted Files Coverage Δ
src/document/interceptor.ts 100.00% <ø> (ø)
src/document/index.ts 100.00% <100.00%> (ø)
src/document/value.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c88865d...195abad. Read the comment docs.

@ph-fritsche ph-fritsche merged commit 77a7fa8 into main Jul 15, 2022
@ph-fritsche ph-fritsche deleted the iss-961 branch July 15, 2022 09:30
@github-actions
Copy link

🎉 This PR is included in version 14.2.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Writing to HTMLSelectElement.value throws TypeError
1 participant