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): track HTMLInputElement.setRangeText() #984

Merged
merged 1 commit into from Jul 14, 2022
Merged

Conversation

ph-fritsche
Copy link
Member

What:

Reset UI value and selection on setRangeText.

Why:

Closes #981

How:

Add interceptor.

Checklist:

  • Tests
  • Ready to be merged

@codesandbox-ci
Copy link

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 5be8dde:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration
repro-userevent-setrangetext-v14 Issue #981
repro-userevent-setrangetext-v13 Issue #981

@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #984 (5be8dde) into main (0a3fe4f) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #984   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           85        86    +1     
  Lines         1825      1837   +12     
  Branches       662       679   +17     
=========================================
+ Hits          1825      1837   +12     
Impacted Files Coverage Δ
src/document/index.ts 100.00% <100.00%> (ø)
src/document/selection.ts 100.00% <100.00%> (ø)
src/document/setRangeText.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 0a3fe4f...5be8dde. Read the comment docs.

@ph-fritsche ph-fritsche merged commit 73443ec into main Jul 14, 2022
@ph-fritsche ph-fritsche deleted the iss-981 branch July 14, 2022 10:18
@github-actions
Copy link

🎉 This PR is included in version 14.2.2 🎉

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.

type regression when used with setRangeText
1 participant